dispose method

  1. @override
Future<void> dispose()
override

Callback when the object is being disposed. DO NOT call this function directly. If you want to mark the object as disposed, use the ScopedDisposableObjectMixin.markDisposed instead.

See also:

Implementation

@override
Future<void> dispose() async {
  await clear();
}