dispose method
Called when this state object is removed from the tree permanently.
Implementation
@override
void dispose() {
final formScope = FormScope.of(context);
if (formScope != null) {
formScope.formState.unregister(this);
}
super.dispose();
}