Hash class abstract

Data object to represent a hash value.

Constructors take either List

Implemented types
Implementers

Constructors

Hash(dynamic content)
Create a new Hash instance.
factory

Properties

buffer ByteBuffer
The byte buffer associated with this object.
no setterinherited
bytes Uint8List
Access the underlying bytes of the hash value.
no setter
elementSizeInBytes int
The number of bytes in the representation of each element in this list.
no setterinherited
hashCode int
Gives a hashcode for the hash value.
no setteroverride
lengthInBytes int
The length of this view, in bytes.
no setterinherited
offsetInBytes int
The offset of this view into the underlying byte buffer, in bytes.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

asBigInteger() BigInt
The hash value as a Big Integer.
asBytes() Uint8List
The bytes that represent the hash value. (Same as bytes getter.)
copyAsBigInteger() BigInt
Copy this hash value as a Big Integer.
copyAsBytes() Uint8List
Copy this hash value as a byte list.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toHex() String
Hexadecimal representation of this hash value.
toJson() → dynamic
Convert to JSON encodable. Returns hex string.
toString() String
Same as toHex().
override

Operators

operator ==(Object other) bool
Compares the internal byte values or both hash values.
override