UsbDevice constructor

UsbDevice()

Constructs a singleton instance of UsbDeviceService.

UsbDeviceService is designed to work as a singleton.

Implementation

factory UsbDevice() {
  _singleton ??= UsbDevice._();
  return _singleton!;
}