dispose method

  1. @mustCallSuper
  2. @override
void dispose()
override

Called when this controller is disposed permanently.

When this method is called, the controller is never used again. It is an error to call any of the start or stop methods at this point.

Implementation

@mustCallSuper
@override
void dispose() {
  info('$runtimeType - Disposing ...');
  remove().then((_) => super.dispose());
}