extractTextFromDoc method
Implementation
@override
Future<String?> extractTextFromDoc(String filePath) async {
// Pass the file path as a parameter to the native method
final String? extractedText = await methodChannel.invokeMethod<String>(
'extractTextFromDoc', // The name of the method
{'filePath': filePath}, // Passing the file path as a method argument
);
return extractedText;
}