startScanning method
Start real-time QR scanning
Implementation
@override
Future<void> startScanning() async {
try {
if (kDebugMode) {
debugPrint('QuickQR Scanner: Starting scanning');
}
await methodChannel.invokeMethod('startScanning');
if (kDebugMode) {
debugPrint('QuickQR Scanner: Scanning started successfully');
}
} on PlatformException catch (e) {
throw _handlePlatformException(e, 'startScanning');
} catch (e) {
throw ScannerException(
ScannerErrorCode.internalError,
'Failed to start scanning: $e',
);
}
}