DataSchemaValue<T> class
sealed
Value corresponding to a WoT DataSchema as specified in section 7.1 of the WoT Scripting API specification.
- Implementers
- Annotations
-
- @immutable
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → T
-
The raw value wrapped by this DataSchemaValue object.
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
fromArray(
List< Object?> value) → ArrayValue -
Creates a DataSchemaValue from a list of
value
s. -
fromBoolean(
bool value) → BooleanValue -
Creates a new typed DataSchemaValue representing a boolean
value
. -
fromInteger(
int value) → IntegerValue - Creates a new typed DataSchemaValue representing an int.
-
fromNull(
) → NullValue -
Creates a new typed DataSchemaValue representing
null
. -
fromNumber(
num value) → NumberValue - Creates a new typed DataSchemaValue representing a num.
-
fromObject(
Map< String, dynamic> value) → ObjectValue -
Creates a DataSchemaValue from a map of
value
s. -
fromString(
String value) → StringValue - Creates a new typed DataSchemaValue representing a String.
-
tryParse(
dynamic value) → DataSchemaValue? -
Tries to instantiate a DataSchemaValue from a raw
value
.