dispose method

void dispose()

Implementation

void dispose() {
  assert(!_disposed);
  _onDisposed.notify();
  _onDisposed.dispose();
  _image?.dispose();
  _disposed = true;
}