dispose method

  1. @override
void dispose()
override

Disposes the resource.

Implementation

@override
void dispose() {
  super.dispose();
  final previous = _current;
  _current = const DisposedDisposable();
  previous.dispose();
}