availablePorts static method
Returns all serial ports currently visible on this device.
On web, always returns a single "Web Serial Port" entry whose path is
web:request. Passing that path to open shows the browser picker.
Implementation
static Future<List<SerialPortInfo>> availablePorts() =>
SerialScanner.getAvailablePorts();