dispose method
Called when this object is removed from the tree permanently.
Implementation
@override
void dispose() {
_registeredForm?.unregisterField(this);
_registeredForm = null;
if (widget._state == this) {
widget._state = null;
}
if (widget.focusNode == null) {
_focusNode.dispose();
}
super.dispose();
}