isSupported method

  1. @override
Future<bool> isSupported()
override

Returns true if web usb is supported

Implementation

@override
Future<bool> isSupported() {
  return methodChannel
      .invokeMethod<bool>('isSupported')
      .then<bool>((dynamic result) => result);
}