TermVariant class abstract
A definition for a defintion and/or part-of-speech variant of a term, used in a DictionaryEntry object.
- term is a term or word.
- 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.
- 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