dispose method

  1. @nonVirtual
Future<void> dispose()

Disposes the extension.

Implementation

@nonVirtual
Future<void> dispose() async {
  if (_isDisposed) {
    return;
  }

  try {
    await onDispose();
  } finally {
    _isDisposed = true;
    _isInitialized = false;
  }
}