DictionaryEntry class

A database entity that represents single or multiple dictionary definitions, which can be in text, media or in a custom format.

A dictionary value belongs to a certain imported dictionary. There may be multiple distinct values belonging to a single key.

Annotations

Constructors

DictionaryEntry({required List<String> definitions, required double popularity, List<String> headingTagNames = const [], List<String> entryTagNames = const [], List<String>? imagePaths, List<String>? audioPaths, String? extra, Id? id})
A standard dictionary entry would only contain text content, but may also be represented with image or audio, or in a custom format.

Properties

audioPaths List<String>?
An optional value that if non-null, contains a path that will point to audio resources. All paths in this will all be deleted if it exists in the file system.
final
compactDefinitions String
Returns all definitions bullet pointed if multiple, and returns the single definition if otherwise.
read-only
definitions List<String>
This field is used for definitions that can be represented in text form, which will probably make up the majority of use cases.
final
dictionary IsarLink<Dictionary>
Each dictionary entry belongs to a dictionary.
final
entryTagNames List<String>
Name of tags that add detail to and describe this entry. This entity is non-null only during the import process. Use tags instead.
final
extra String?
An optional value that may be used to store structured content or metadata that cannot be represented in any other parameters.
final
hashCode int
The hash code for this object.
read-onlyoverride
heading IsarLink<DictionaryHeading>
Each dictionary entry belongs to a certain heading.
final
headingTagNames List<String>
Name of tags that add detail to and describe the heading this entry belongs to. This entity is non-null only during the import process. Use tags from the heading instead.
final
id Id?
Identifier for database purposes.
read / write
imagePaths List<String>?
An optional value that if non-null, contains a path that will point to an image resource. The resource contained in the path is deleted if it exists in the file system.
final
popularity double
A value that can be used to sort entries when performing a database search. Lower negative values mean rarer, and higher positive values are more common.
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
tags IsarLinks<DictionaryTag>
Each dictionary entry may have a set of tags.
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