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