@override Future<void> stopScan() async { try { await methodChannel.invokeMethod<void>('stopScan'); } on PlatformException catch (e) { debugPrint('Failed to stop scan: ${e.message}'); } }