Box<T> class

Inheritance
Implementers
Annotations
  • @JsonSerializable(checked: true, explicitToJson: true)

Constructors

Box(Evidence? evidence, T value, Nonce nonce, String type)
Box.fromJson(Map<String, dynamic> json)
A necessary factory constructor for creating a new Box instance from a map. Pass the map to the generated _$BoxFromJson() constructor. The constructor is named after the source class, in this case, Box.
factory

Properties

boxId BoxId
a one-time only, unique reference id (computed from the input transaction data)
getter/setter pairoverride
evidence Evidence?
a commitment to the proposition locking this box
finalinherited
hashCode int
The hash code for this object.
no setteroverride
nonce Nonce
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String
final
value → T
final

Methods

copyWith({Evidence? evidence, T? value, Nonce? nonce, String? type}) Box<T>
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 _$BoxToJson.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override