dispose method

  1. @mustCallSuper
FutureOr<void> dispose()

Disposes this Plugin. Always call super.dispose before any other overridden code. In general you should not call this method as App will do that for you.

Implementation

@mustCallSuper
FutureOr<void> dispose() async {
  if (_disposed) {
    throw StateError('$name is already disposed of.');
  }

  _disposed = true;
}