disposeState method
The framework calls this method when this StateX object will never build again. Note: YOU WILL HAVE NO IDEA WHEN THIS WILL RUN in the Framework.
Implementation
void disposeState(covariant State state) {
/// The framework calls this method when this [StateX] object will never
/// build again. The [State] object's lifecycle is terminated.
// Optionally call super for debugPrint()
assert(() {
if (_debugPrintEvents) {
debugPrint(
'$_consoleLeadingLine disposeState($state) in $_consoleClassName');
}
return true;
}());
}