write method
- Uint8List data
Writes data to the port.
Implementation
void write(Uint8List data) {
if (!_port.isOpen) return;
try {
_port.write(data);
} catch (error) {
logger.warning("Could not write data to port $portName");
}
}