stopScan method

  1. @override
Future<void> stopScan()
override

Implementation

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