setOnDisconnectCallback method
Set functions to get a callback when the paired device is disconnect
Implementation
@override
Future<void> setOnDisconnectCallback(Function(dynamic) onDisconnect) async {
this._webUsbJS.setOnDisconnectCallback(allowInterop((device) {
onDisconnect(device);
}));
}