flush method

Future<void> flush()

Implementation

Future<void> flush() {
  final operation = _writeGate.then(
    (_) => _flushNow(),
    onError: (_) => _flushNow(),
  );
  _writeGate = operation;
  return operation;
}