flush method

  1. @override
Future flush()
override

Flushes buffer, if applicable.

Implementation

@override
Future flush() {
  if (_socket == null) return Future.value();
  return _socket!.then((s) => s.flush());
}