ResultCodec<R, E> class

Mixed in types

Constructors

ResultCodec(Codec<R> okCodec, Codec<E> errCodec)
const

Properties

errCodec Codec<E>
final
hashCode int
The hash code for this object.
no setterinherited
okCodec Codec<R>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

decode(Input input) Result<R, E>
override
encode(Result<R, E> value) Uint8List
Convert self to an owned vector.
inherited
encodeTo(Result<R, E> value, Output output) → void
Convert self to a slice and append it to the destination.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sizeHint(Result<R, E> value) int
If possible give a hint of expected size of the encoding.
override
toString() String
A string representation of this object.
inherited

Operators

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