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
Returns the byte buffer associated with this object.
no setterinherited
bytes Uint8List
Access the underlying bytes of the hash value.
no setter
elementSizeInBytes int
Returns 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
Returns the length of this view, in bytes.
no setterinherited
offsetInBytes int
Returns the offset in bytes into the underlying byte buffer of this view.
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