getEntry method

DictEntry getEntry(
  1. String word
)

Returns the entry for the given word.

Implementation

DictEntry getEntry(String word) {
  List<DictEntryMeaning> explanations =
      DictReducedMSA.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, DictReducedMSA.getSynonyms(word),
      DictReducedMSA.getAntonyms(word));
}