SimpleCodec<T, R> class

Inheritance

Constructors

SimpleCodec(T decode(R), R encode(T))

Properties

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

Methods

decode(R encoded) → T
Decodes encoded data.
inherited
encode(T input) → R
Encodes input.
inherited
fuse<R>(Codec<R, 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