getEntry method
Implementation
Future<DictEntry> getEntry(String word) async {
final assetEntry = await _getAssetEntry(word);
List<DictEntryMeaning> explanations =
assetEntry['M'].map<DictEntryMeaning>((meaning) {
var pos = getPos(meaning[0]!);
return DictEntryMeaning(pos, meaning[1], List<String>.from(meaning[2]),
List<String>.from(meaning[3]));
}).toList();
return DictEntry(word, explanations, List<String>.from(assetEntry['S']),
List<String>.from(assetEntry['A']));
}