usbEventStream property
Implementation
Stream<UsbEvent>? get usbEventStream {
if (_eventStream == null) {
_eventStream =
_eventChannel!.receiveBroadcastStream().map<UsbEvent>((value) {
UsbEvent msg = UsbEvent();
msg.device = UsbDevice.fromJSON(value);
msg.event = value["event"];
return msg;
});
}
return _eventStream;
}