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