stopDetection method

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

Implementation

@override
Future<void> stopDetection() async {
  try {
    await _methodChannel.invokeMethod('stopDetection');
  } on PlatformException catch (e) {
    throw Exception('Failed to stop detection: ${e.message}');
  }
}