flush method

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

Throws AtIOException when the socket fails before the bytes leave.

Implementation

@override
Future<void> flush() async {
  try {
    await _socket.flush();
  } on IOException catch (e) {
    throw _failed(e);
  }
}