extractTextFromDoc method

  1. @override
Future<String?> extractTextFromDoc(
  1. String filePath
)
override

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;
}