copyWith abstract method

TermVariant copyWith({
  1. String? term,
  2. Language? language,
  3. PartOfSpeech? partOfSpeech,
  4. String? definition,
  5. Iterable<Pronunciation>? pronunciations,
  6. Iterable<String>? etymologies,
  7. Iterable<String>? synonyms,
  8. Iterable<String>? antonyms,
  9. Iterable<String>? phrases,
  10. Iterable<String>? inflections,
  11. Iterable<String>? lemmas,
})

Returns a copy of the TermVariant instance updated properties.

  • term is a term or word.
  • term is a term or word.
  • language is the Language of the term variant.
  • partOfSpeech is the PartOfSpeech category of the term.
  • pronunciations is the phonetic spelling of and a link to an audiofile for the pronunciations of the term.
  • definition is the definition for term when used as partOfSpeech.
  • synonyms is an unordered collection synonyms for term.
  • etymologies is an unordered collectionof etymologoies of term .
  • antonyms is an unordered collection antonyms for term.
  • inflections is an unordered collection of inflections of term.
  • lemmas, the lemmas of term.
  • phrases is an unordered collection of unique example phrases that include term when used as partOfSpeech.

Implementation

TermVariant copyWith(
    {String? term,
    Language? language,
    PartOfSpeech? partOfSpeech,
    String? definition,
    Iterable<Pronunciation>? pronunciations,
    Iterable<String>? etymologies,
    Iterable<String>? synonyms,
    Iterable<String>? antonyms,
    Iterable<String>? phrases,
    Iterable<String>? inflections,
    Iterable<String>? lemmas});