Evidence class
Constructors
- Evidence(EvidenceTypePrefix prefix, Digest evBytes)
- Evidence.apply(EvidenceTypePrefix prefix, Digest content)
-
factory
- Evidence.fromBase58(String evidence)
-
factory
- Evidence.fromJson(String json)
-
A necessary factory constructor for creating a new Evidence instance
from a map. Pass the map to the generated
_$EvidenceFromJson()
constructor. The constructor is named after the source class, in this case, Evidence.factory
Properties
- evBytes → Digest
-
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- prefix → EvidenceTypePrefix
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → int
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → String -
toJson
is the convention for a class to declare support for serialization to JSON. The implementation simply calls the private, generated helper method_$EvidenceToJson
. -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Constants
- contentLength → const int