getWordMeaning static method

Future<List<WordMeaning>> getWordMeaning({
  1. required String word,
})

Gets english dictionary meaning of a word param word returns Future of empty list if empty string is provided as word returns Future of list of word meaning if it exists throws exceptions in case of network or server issues

Implementation

static Future<List<WordMeaning>> getWordMeaning(
    {required String word}) async {
  return FreeDictionaryService.getWordMeaning(word);
}