close method

void close()

Implementation

void close() {
  assert(!isClosed, 'You cannot close a closed Stream');
  _notifyDone();
  _onData = null;
  _isBusy = null;
  _value = null;
}