CastCodec<T> class

Inheritance

Constructors

CastCodec()

Properties

decoder Converter<dynamic, T>
Returns the decoder of this, converting from T to S.
no setteroverride
encoder Converter<T, dynamic>
Returns the encoder from S to T.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
inverted Codec<dynamic, T>
Inverts this.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

decode(dynamic encoded) → T
Decodes encoded data.
inherited
encode(T input) → dynamic
Encodes input.
inherited
fuse<R>(Codec<dynamic, R> other) Codec<T, R>
Fuses this with other.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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