PlatformCodec<T extends Object> class abstract

Platform specific codec for a data format.

Implementers

Constructors

PlatformCodec()
const

Properties

decodingFormats List<PlatformFormat>
no setter
encodingFormats List<PlatformFormat>
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

decode(PlatformDataProvider dataProvider, PlatformFormat format) Future<T?>
Decodes the data from platform representation. Returns null if decoding failed.
encode(T value, PlatformFormat format) FutureOr<Object?>
Encodes the data to platform representation. By default this is a simple passthrough function.
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