write method

void write(
  1. Uint8List buf
)

Implementation

void write(Uint8List buf) {
  if (!isConnected()) {
    throw SocketException.closed();
  }

  _socket!.add(buf);
}