DictionaryTag class
A database entity for tags, heavily based on the Yomichan format.
- Annotations
-
- @Collection()
Constructors
- DictionaryTag({required int dictionaryId, required String name, required String category, required int sortingOrder, required String notes, required double popularity})
- Initiates a tag with given parameters.
- DictionaryTag.dictionary(Dictionary dictionary)
-
Makes a tag for a dictionary.
factory
Properties
- category → String
-
Category for the tag.
final
- color → Color
-
Get the color for this tag based on its category.
read-only
-
dictionary
→ IsarLink<
Dictionary> -
A value is yielded from a single key.
final
- dictionaryId → int
-
Dictionary ID for hashing this tag.
final
- hashCode → int
-
The hash code for this object.
read-onlyoverride
- isarId → Id
-
Identifier for database purposes.
read-only
- name → String
-
Display name for the tag.
final
- notes → String
-
Notes for this tag.
final
- popularity → double
-
Score used to determine popularity.
Negative values are more rare and positive values are more frequent.
This score is also used to sort search results.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- sortingOrder → int
-
Sorting order for the tag.
final
Methods
-
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.
override