getEntry method
Returns the entry for the given word.
Implementation
DictEntry getEntry(String word) {
List<DictEntryMeaning> explanations =
DictMSA.getMeanings(word).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, DictMSA.getSynonyms(word),
DictMSA.getAntonyms(word));
}