ClValue class
- Annotations
-
- @JsonSerializable(fieldRename: FieldRename.snake)
Constructors
- ClValue(ClTypeDescriptor clTypeDescriptor, Uint8List bytes, dynamic parsed)
- ClValue.bool(bool value)
- ClValue.byteArray(Uint8List byteArray)
- ClValue.byteArrayFromHex(String hexStr)
- ClValue.emptyList(ClTypeDescriptor listType)
- ClValue.error(ClValue value, ClTypeDescriptor okType)
-
ClValue.fromJson(Map<
String, dynamic> json) -
factory
- ClValue.i32(int value)
- ClValue.i64(int value)
- ClValue.key(GlobalStateKey key)
-
ClValue.list(List<
ClValue> values) -
ClValue.map(Map<
ClValue, ClValue> map) - ClValue.ok(ClValue value, ClTypeDescriptor errorType)
- ClValue.option(ClValue inner)
- ClValue.optionNone(ClTypeDescriptor innerType)
- ClValue.publicKey(ClPublicKey key)
- ClValue.string(String value)
- ClValue.tuple1(ClValue value)
- ClValue.tuple2(ClValue value1, ClValue value2)
- ClValue.tuple3(ClValue value1, ClValue value2, ClValue value3)
- ClValue.u128(BigInt value)
- ClValue.u256(BigInt value)
- ClValue.u32(int value)
- ClValue.u512(BigInt value)
- ClValue.u64(int value)
- ClValue.u8(int value)
- ClValue.unit()
- ClValue.uref(Uref value)
Properties
- bytes ↔ Uint8List
-
getter/setter pair
- clTypeDescriptor ↔ ClTypeDescriptor
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- parsed ↔ dynamic
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toBytes(
) → Uint8List -
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited