CodecMixin<S, T> mixin
class MyCodec with CodecMixin<S, T> implements Codec<S, T> {
// Must override
@override
Codec get codec;
...
}
Properties
-
codec
→ Codec<S, T>
-
no setter
-
decoder
→ Converter<T, S>
-
Returns the decoder of
this
, converting from T
to S
.
no setteroverride
-
encoder
→ Converter<S, T>
-
Returns the encoder from
S
to T
.
no setteroverride
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
inverted
→ Codec<T, S>
-
Inverts
this
.
no setteroverride
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
decode(T encoded)
→ S
-
Decodes
encoded
data.
override
-
encode(S input)
→ T
-
Encodes
input
.
override
-
fuse<R>(Codec<T, R> other)
→ Codec<S, R>
-
Fuses
this
with other
.
override
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited