flush method
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();
}