TermVariant class abstract

A definition for a defintion and/or part-of-speech variant of a term, used in a DictionaryEntry object.

Implementers

Constructors

TermVariant.new({required String term, required Language language, required String definition, required PartOfSpeech partOfSpeech, Set<String> etymologies = const <String>{}, Set<Pronunciation> pronunciations = const <Pronunciation>{}, Set<String> synonyms = const <String>{}, Set<String> antonyms = const <String>{}, Set<String> phrases = const <String>{}, Set<String> inflections = const <String>{}, Set<String> lemmas = const <String>{}})
A factory constructor that instantiates an immutable TermVariant object.
factory

Properties

antonyms Set<String>
An unordered collection of unique terms that are antonyms of term when used as partOfSpeech.
no setter
definition String
The definition for term when used as partOfSpeech.
no setter
etymologies Set<String>
An unordered collection of etymologoies of term when used as partOfSpeech.
no setter
hashCode int
The hash code for this object.
no setterinherited
inflections Set<String>
An unordered collection of unique terms that are inflections of term when used as partOfSpeech.
no setter
language Language
The Language of the term variant.
no setter
lemmas Set<String>
An unordered collection of unique terms that are inflections of term when used as partOfSpeech.
no setter
partOfSpeech PartOfSpeech
The PartOfSpeech category of the term.
no setter
phrases Set<String>
An unordered collection of unique example phrases that include term when used as partOfSpeech.
no setter
pronunciations Set<Pronunciation>
The term variant's phonetic spelling and a link to an audiofile for its pronunciations.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
synonyms Set<String>
An unordered collection of unique terms that are synonyms of term when used as partOfSpeech.
no setter
term String
The term for this entry.
no setter

Methods

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}) TermVariant
Returns a copy of the TermVariant instance updated properties.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited