onAfterLoad method
Implementation
@override
Future<void> onAfterLoad() async {
super.onAfterLoad();
if (fileBytes != null) {
_excel = Excel.decodeBytes(fileBytes!);
_sheetNames = _excel!.tables.keys.toList();
if (_sheetNames.isNotEmpty) {
_currentSheet = _sheetNames[0];
}
}
}