startService method

  1. @override
Future<void> startService()
override

Starts the service to listen to USB events. Will respond if an usb device is attached or detached. This service may show a notification icon in the notification bar.

Implementation

@override
Future<void> startService() async {
  await methodChannel.invokeMethod("startService");
}