closeDevice method
Closes a connection handle. Invoking operations on a handle after it has been closed is a safe operation but causes no action to be taken. |handle|: The ConnectionHandle to close.
Implementation
Future<void> closeDevice(ConnectionHandle handle) async {
await promiseToFuture<void>($js.chrome.usb.closeDevice(handle.toJS));
}