scanUsbAccessory method Null safety
override
扫描USB设备
Implementation
@override
Future<List<UsbAccessoryDevice>?> scanUsbAccessory() async {
return methodChannel
.invokeMethod(PluginConstants.methodScanUsbAccessoryDevice)
.then((value) {
return proto.UsbAccessoryList.fromBuffer(value)
.items
.map((e) => UsbAccessoryDevice.fromProto(e))
.toList();
});
}