DataAttributesAccessor class abstract
Accessor used for manipulating data attributes.
Note: This is a beta release of this feature, so there could be a few bugs and unexpected behavior. Related APIs may change for new releases without a deprecation process.
- Implemented types
Constructors
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.
-
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
nullif 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
nullif 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
nullif 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
nullif 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
nullif it is not contained or the type doesn't match.inherited -
getString(
String name) → String? -
Gets the value of a string attribute or
nullif it is not contained or the type doesn't match.inherited -
getValue(
String name) → DataAttributeValue? -
Gets the DataAttributeValue or
nullif it is not contained.inherited -
getValueType(
String name) → DataAttributeValueValueType? -
Returns the value type of an attribute or
nullif 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