startOCR method

  1. @override
Future<String?> startOCR(
  1. Map<String, dynamic> params
)
override

Method to start OCR by calling the native platform's implementation.

Implementation

@override
Future<String?> startOCR(Map<String, dynamic> params) async {
  try {
    final result = await methodChannel.invokeMethod<String>('startOCR', params);
    return result;
  } catch (e) {
    if (kDebugMode) {
      print("Failed to start OCR: $e");
    }
    return null;
  }
}