dispose method
override
Closes the connection to the device.
Implementation
@override
Future<void> dispose() async {
for (final subscription in _subscriptions) {
await subscription.cancel();
}
for (final device in devices) {
await device.dispose();
}
}