dispose method

  1. @override
void dispose()
override

The framework calls this method when this StateMVC object will never build again. Note: THERE IS NO GUARANTEE THIS METHOD WILL RUN in the Framework.

Implementation

@override
void dispose() {
  if (disposeFunc != null) {
    disposeFunc!();
  }
  super.dispose();
}