Apply dart format

This commit is contained in:
Gianluca Boiano committed 2026-09-17 23:12:52 +02:00
1 parent 1b5ebf6834
commit 2910dc9f67
2 files changed
+3 -1

No files matched your search

+2
View File
@@ -188,12 +188,14 @@ class MeshCoreConnector extends ChangeNotifier {
String? _lastDeviceId;
String? _lastDeviceDisplayName;
bool _manualDisconnect = false;
/// Non-null while [disconnect] is tearing the transport down. Connect paths
/// join it so a teardown cannot finish after a new connection and reset the
/// state to `disconnected`. USB made this reachable: its native close now
/// waits out the kernel's closing_wait off the UI isolate, so the teardown
/// can outlive the tap that starts the next connection.
Future<void>? _activeDisconnect;
/// Set by [dispose]. A teardown started before disposal can still be running
/// (the USB native close waits out the kernel's closing_wait off the UI
/// isolate), so state publication is suppressed once the connector is gone.
+1 -1
View File
@@ -35,6 +35,7 @@ class UsbSerialService {
String? _connectedPortKey;
String? _connectedPortLabel;
FlSerial? _serial;
/// Non-null while a disconnect teardown (native close in a helper isolate,
/// then subscription cancel) is running.
Future<void>? _activeDisconnect;
@@ -341,7 +342,6 @@ class UsbSerialService {
}
Future<void> _disconnectInternal() async {
final portLabel = _connectedPortLabel ?? _connectedPortKey;
_debugLogService?.info(
'USB disconnect starting port=${portLabel ?? 'unknown'}',