BorshEnumDecoder<T extends Enum> class

Enum Decoder

A decoder for enum data types.

Inheritance

Constructors

BorshEnumDecoder.new(List<T> values, [int byteLength = ByteLength.u8])
Creates a decoder for enum data types.
const

Properties

byteLength int
The encoded byte length.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
values List<T>
The enum's variants.
final

Methods

bind(Stream<Iterable<int>> stream) Stream<T>
Transforms the provided stream.
inherited
cast<RS, RT>() Converter<RS, RT>
Provides a Converter<RS, RT> view of this stream transformer.
inherited
convert(Iterable<int> input) → T
Decodes T from input.
inherited
fuse<TT>(Converter<T, TT> other) Converter<Iterable<int>, TT>
Fuses this with other.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
startChunkedConversion(Sink<T> sink) Sink<Iterable<int>>
Starts a chunked conversion.
inherited
toString() String
A string representation of this object.
inherited
unpack(BufferReader buffer) → T
Reads T from buffer.
override

Operators

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