TokenBox class
Constructors
- TokenBox(TokenValueHolder value, Evidence evidence, Nonce nonce, String type)
-
TokenBox.fromJson(Map<
String, dynamic> json) -
A necessary factory constructor for creating a new TokenBox instance
from a map. Pass the map to the generated
_$TokenBoxFromJson()
constructor. The constructor is named after the source class, in this case, TokenBox.factory
Properties
- boxId ↔ BoxId
-
a one-time only, unique reference id (computed from the input transaction data)
getter/setter pairinherited
- evidence → Evidence?
-
a commitment to the proposition locking this box
finalinherited
- hashCode → int
-
The hash code for this object.
no setteroverride
- nonce → Nonce
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → String
-
finalinherited
- value → TokenValueHolder
-
final
Methods
-
copyWith(
{Evidence? evidence, dynamic value, Nonce? nonce, String? type}) → Box -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toJson
is the convention for a class to declare support for serialization to JSON. The implementation simply calls the private, generated helper method_$TokenBoxToJson
.override -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override