onAfterLoad method

  1. @override
Future<void> onAfterLoad()
override

Implementation

@override
Future<void> onAfterLoad() async {
  super.onAfterLoad();

  // Extract text from DOCX for search/copy
  if (fileBytes != null) {
    try {
      _extractedText = docxToText(fileBytes!);
    } catch (e) {
      //debugPrint('Error extracting text: $e');
    }
  }
}