complete method

dynamic complete ()

Implementation

complete() {
  if (_isCompleted) {
    throw ArgumentError('Event $T has already been completed');
  }
  _onComplete();
  _isCompleted = true;
}