dispose method Null safety
Marks the BuildContext as disposed.
Creators of this object must call dispose when their Element is unmounted, i.e. when State.dispose is called.
Implementation
void dispose() {
_state = null;
}
Marks the BuildContext as disposed.
Creators of this object must call dispose when their Element is unmounted, i.e. when State.dispose is called.
void dispose() {
_state = null;
}