Skip to content

Glossary: Flutter

dispose()

Also written: initState

The `State` method that runs once when a widget is removed for good; free controllers there and then call `super.dispose()`. Its partner `initState()` runs once when the state is created.

Where the book teaches it

Related terms

TextEditingControllerState