getMacroModeState method
Get current macro mode state
Implementation
@override
Future<Map<String, dynamic>> getMacroModeState() async {
try {
if (kDebugMode) {
debugPrint('QuickQR Scanner: Getting macro mode state');
}
final result = await methodChannel.invokeMethod<Map<Object?, Object?>>('getMacroModeState');
final macroState = Map<String, dynamic>.from(result ?? {});
if (kDebugMode) {
debugPrint('QuickQR Scanner: Macro mode state - $macroState');
}
return macroState;
} on PlatformException catch (e) {
throw _handlePlatformException(e, 'getMacroModeState');
} catch (e) {
throw ScannerException(
ScannerErrorCode.internalError,
'Failed to get macro mode state: $e',
);
}
}