Digest class

Constructors

Digest(int size, Uint8List bytes)
Digest.from(Uint8List bytes, int size)
Gets a validated digest from an array of bytes Parameter bytes: the bytes to be converted into a digest Returns a validated digest with a possible invalid digest error
factory
Digest.fromBase58(String digest, int size)
factory
Digest.fromJson(String json)
A necessary factory constructor for creating a new Digest instance from a map. Pass the map to the generated _$DigestFromJson() constructor. The constructor is named after the source class, in this case, Digest.
factory

Properties

bytes Uint8List
The bytes representing the digest
final
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size int
The Digest size
final

Methods

copyWith({int? size, Uint8List? bytes}) Digest
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 _$DigestToJson.
toString() String
A string representation of this object.
override

Operators

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