buildOption function
Implementation
SimpleDialogOption buildOption(String address, BuildContext context) {
final port = SerialPort(address);
debugPrint('Address $address');
debugPrint('Description ${port.description}');
debugPrint('Transport ${port.transport.toTransport()}');
debugPrint('Manufacturer ${port.manufacturer}');
debugPrint('Product Name ${port.productName}');
debugPrint('Serial Number ${port.serialNumber}');
debugPrint('MAC Address ${port.macAddress}');
port.close();
return SimpleDialogOption(
onPressed: () { Navigator.pop(context, address); },
child: Text(address),
);
}