setDetectionMode method
Implementation
@override
Future<bool> setDetectionMode(bool enabled) async {
try {
final result = await methodChannel.invokeMethod<bool>(
'setDetectionMode',
{'enabled': enabled},
);
return result ?? false;
} on PlatformException catch (e) {
debugPrint('Error calling setDetectionMode: ${e.message}');
return false;
}
}