close method

  1. @override
Future<void> close()
override

Close the stream. After that, calls to add are no longer allowed.

Implementation

@override
Future<void> close() {
  _fromStreamSubscription?.cancel();
  _fromStreamSubscription = null;
  return super.close();
}