dispose method

  1. @override
void dispose()
override

Disposes this disposable and any resources it has open.

Implementation

@override
void dispose() {
  _wasDisposed = true;
  _disposeFn();
}