copyWith abstract method
Returns a copy of the TermVariant instance updated properties.
termis a term or word.termis a term or word.languageis the Language of the term variant.partOfSpeechis the PartOfSpeech category of theterm.pronunciationsis the phonetic spelling of and a link to an audiofile for the pronunciations of theterm.definitionis the definition fortermwhen used aspartOfSpeech.synonymsis an unordered collection synonyms forterm.etymologiesis an unordered collectionof etymologoies ofterm.antonymsis an unordered collection antonyms forterm.inflectionsis an unordered collection of inflections ofterm.lemmas, the lemmas ofterm.phrasesis an unordered collection of unique example phrases that includetermwhen used aspartOfSpeech.
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});