DataAttributesAccessor class abstract

Accessor used for manipulating data attributes.

Note: This is a beta release of this feature and may contain bugs or exhibit unexpected behaviour. Related APIs are subject to change without a deprecation process.

Implemented types

Constructors

DataAttributesAccessor()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

addOrReplace(String name, DataAttributeValue value) → void
Adds or replaces an attribute.
addOrReplaceBoolean(String name, bool value) → void
Adds or replaces a boolean attribute.
addOrReplaceColor(String name, Color value) → void
Adds or replaces a color attribute.
addOrReplaceDouble(String name, double value) → void
Adds or replaces a double precision floating decimal attribute.
addOrReplaceFloat(String name, double value) → void
Adds or replaces a single precision floating decimal attribute.
addOrReplaceLong(String name, int value) → void
Adds or replaces a 64-bits integer attribute.
addOrReplaceString(String name, String value) → void
Adds or replaces a string attribute.
getAsString(String name) → String?
Gets the value of an attribute as a string or null if it is not contained.
inherited
getAttributeNames() → List<String>
Returns a list of attribute names.
inherited
getBoolean(String name) → bool?
Gets the value of a boolean attribute or null if it is not contained or the type doesn't match.
inherited
getColor(String name) → Color?
Gets the value of a color attribute or null if it is not contained or the type doesn't match.
inherited
getDouble(String name) → double?
Gets the value of a double precision floating decimal attribute or null if it is not contained or the type doesn't match.
inherited
getFloat(String name) → double?
Gets the value of a single precision floating decimal attribute or null if it is not contained or the type doesn't match.
inherited
getInt64(String name) → int?
Gets the value of a 64-bits integer attribute or null if it is not contained or the type doesn't match.
inherited
getString(String name) → String?
Gets the value of a string attribute or null if it is not contained or the type doesn't match.
inherited
getValue(String name) → DataAttributeValue?
Gets the DataAttributeValue or null if it is not contained.
inherited
getValueType(String name) → DataAttributeValueType?
Returns the value type of an attribute or null if it is not contained.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove(String name) → void
Removes an attribute by name.
removeAll() → void
Removes all attributes.
toString() → String
A string representation of this object.
inherited

Operators

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