dispose method
Disposes this sink and closes the stream.
Does not wait for the done event to reach a listener. A single-subscription stream only delivers that event once something listens to it, so waiting would hang the disposal of a sink which was never listened to, or whose listener is paused.
Implementation
@override
Future<void> dispose() async {
await super.dispose();
unawaited(_controller.close());
}