SimplePlatformCodec<T extends Object> constructor
const
SimplePlatformCodec<T extends Object> ({
- List<
PlatformFormat> ? formats, - List<
PlatformFormat> ? encodingFormats, - List<
PlatformFormat> ? decodingFormats, - Future<
T?> onDecode(- PlatformDataProvider dataProvider,
- PlatformFormat format
- FutureOr<
Object?> onEncode(- T value,
- PlatformFormat format
Implementation
const SimplePlatformCodec({
List<PlatformFormat>? formats,
List<PlatformFormat>? encodingFormats,
List<PlatformFormat>? decodingFormats,
this.onDecode,
this.onEncode,
}) : _formats = formats,
_encodingFormats = encodingFormats,
_decodingFormats = decodingFormats;