@override Future<void> stop() async { if (!_isScanInProgress) return; await client.adapters.first.stopDiscovery(); _isScanInProgress = false; notifyState(state); }