write method

void write(
  1. Uint8List data
)

Sends data to the open port (fire-and-forget).

Has no effect if no port is open.

Implementation

void write(Uint8List data) {
  if (_webPath != null) writeWebPort(_webPath!, data);
}