dispose method
- @override
inherited
Closes the connection to the device.
Implementation
@override
Future<void> dispose() async {
await _subscription?.cancel();
_heartbeatTimer?.cancel();
await super.dispose();
}
Closes the connection to the device.
@override
Future<void> dispose() async {
await _subscription?.cancel();
_heartbeatTimer?.cancel();
await super.dispose();
}