recognizeText method
Implementation
@override
Future<String> recognizeText(String imagePath) async {
if (!Platform.isIOS) {
throw UnsupportedError('FlutterNativeOcr is only available on iOS.');
}
final result = await methodChannel.invokeMethod<String>('recognizeText', {
'imagePath': imagePath,
});
return result ?? '';
}