onClose method Null safety

  1. @visibleForOverriding
FutureOr<void> onClose()

A method that handles the sink being closed.

This may return a future that completes once the stream sink has shut down. If cleaning up can fail, the error may be reported in the returned future.

Implementation

@visibleForOverriding
FutureOr<void> onClose();