onClose method Null safety
visibleForOverriding">@visibleForOverriding
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();