dispose method

  1. @mustCallSuper
void dispose()

Dispose the object and emit null to the dispose$ stream.

Implementation

@mustCallSuper
void dispose() {
  if (_dispose$.isClosed) {
    return;
  }
  _dispose$
    ..add(null)
    ..close();
}