flush method

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

Sends what was written so far to the client now instead of when the buffer fills; used after each server-sent event so that it arrives at once.

Implementation

@override
Future<void> flush() async => _commit();