A Flutter plugin integrated with Android-SerialPort-API.
This plugin works only for rooted Android devices.
List devices = await SerialportFlutter.listDevices();
List devices = await SerialportFlutter.listDevicesPath();
bool openResult = await SerialportFlutter.open('/your/device/path', baudrate, dataBits, parity, stopBits);
bool closeResult = await SerialportFlutter.close();
SerialportFlutter.write(Uint8List.fromList("Write some data".codeUnits));