dispose method

void dispose()

Implementation

void dispose() {
  if (!_isDisposed) {
    _isDisposed = true;
    this._dispose?.call(this);
  }
}