NodeValue class abstract
Interface for accessing key/value pairs in nodes.
All values supporting locales must have at least an english [Locale.ENGLISH] locale.
- Mixed in types
- Implementers
Constructors
Properties
-
allDescriptionTranslations
→ Map<
Locale, String> -
Gets all translations of the description of the value.
no setter
-
allValueTranslations
→ Map<
Locale, String> -
Gets all translations of the value.
no setter
- extendedLastModified → String
-
Gets a unique, sortable string which is guaranteed to be unique across a huge set of devices.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → String
-
Gets the key of the K/V tuple.
no setter
- lastModified ↔ int
-
Gets the epoch of the last modification of the value.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type ↔ String?
-
Gets the type of value.
getter/setter pair
- value → String
-
Gets the default language value of the K/V tuple.
no setter
Methods
-
deepClone(
) → NodeValue - Creates a deep clone of the K/V tuple.
-
equals(
Object? object) → bool - Checks if two NodeValue are equivalent in values.
-
getDescription(
[String languageRange]) → String? - Gets the description of the value.
-
getValue(
String languageRange) → String? - Gets the string representation of the value in the default locale (Locale.ENGLISH).
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setDescription(
String description, [Locale locale]) → String? - Sets the description of the value.
-
setValue(
String value, [Locale locale]) → void - Sets the string representation of the value.
-
toByteArrayStream(
ByteSink out) → void -
Writes the current object to the output stream.
inherited
-
toSimpleString(
[String? languageRange]) → String? - Returns a value in the specified language range or the default language if none specified.
-
toString(
[String prefix]) → String -
prints a space prefixed representation of the NodeValue.
override
-
touch(
) → void - updates the timestamp to reflect that this node value has been touched.
-
update(
NodeValue nodeValue) → void - Copies the all values of the given node to the current node value.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited