DataAttributeValue class abstract

Encapsulates a data attribute value.

Supports basic types and arrays of basic types.

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.

Constructors

DataAttributeValue.withArray(List<DataAttributeValue> value)
Creates an aggregated data attribute value.
factory
DataAttributeValue.withBoolean(bool value)
Creates a boolean data attribute value.
factory
DataAttributeValue.withDouble(double value)
Creates a double precision floating decimal data attribute value.
factory
DataAttributeValue.withFloat(double value)
Creates a single precision floating decimal data attribute value.
factory
DataAttributeValue.withInt64(int value)
Creates a 64-bit integer data attribute value.
factory
DataAttributeValue.withString(String value)
Creates a string data attribute value.
factory

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

getArray() → List<DataAttributeValue>?
Gets the array value or null if the type doesn't match.
getAsString() → String
Returns a string representation of the contained value.
getBoolean() → bool?
Gets the boolean value or null if the type doesn't match.
getDouble() → double?
Gets the double precision floating decimal value or null if the type doesn't match.
getFloat() → double?
Gets the single precision floating decimal value or null if the type doesn't match.
getInt64() → int?
Gets 64-bits integer value or null if the type doesn't match.
getString() → String?
Gets the string value or null if the type doesn't match.
getType() DataAttributeValueValueType
Returns the type of the value.
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.
inherited