dispose method
override
Closes the connection to the device.
Implementation
@override
Future<void> dispose() async {
_timer?.cancel();
await _port.dispose(isSafe: isOpen);
}
Closes the connection to the device.
@override
Future<void> dispose() async {
_timer?.cancel();
await _port.dispose(isSafe: isOpen);
}