UsbPort constructor

UsbPort(
  1. String methodChannelName
)

Factory to create UsbPort object.

You don't need to use this directly as you get UsbPort from UsbDevice.create.

Implementation

factory UsbPort(String methodChannelName) {
  return UsbPort._internal(MethodChannel(methodChannelName), EventChannel(methodChannelName + "/stream"));
}