requestPermission method

  1. @override
Future<bool> requestPermission(
  1. UsbDevice usbDevice
)
override

Implementation

@override
Future<bool> requestPermission(UsbDevice usbDevice) async {
  final granted = await methodChannel.invokeMethod<bool>(
      'requestPermission', usbDevice.toMap());

  return granted ?? false;
}