close method

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

Closes the sink.

The add method must not be called after this method.

Calling this method more than once is allowed, but does nothing.

Implementation

@override
Future<void> close() async {
  await _stateSubscription.cancel();
  await _inActionSubscription.cancel();
  await _controller.close();
}