flush method

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

Flushes the buffer, ensuring all written data is actually written.

This method always invokes Writer.flush on the underlying writer.

Implementation

@override
Future<void> flush() {
  if (_length > 0) {
    _softFlush();
  }
  return _writer.flush();
}