dispose method

  1. @mustCallSuper
void dispose()

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

@mustCallSuper
void dispose() {
  /// The framework calls this method when this [StateMVC] object will never
  /// build again. The [State] object's lifecycle is terminated.
  /// Subclasses should override this method to release any resources retained
  /// by this object (e.g., stop any active animations).
}