SimplePlatformCodec<T extends Object> constructor

const SimplePlatformCodec<T extends Object>({
  1. List<PlatformFormat>? formats,
  2. List<PlatformFormat>? encodingFormats,
  3. List<PlatformFormat>? decodingFormats,
  4. Future<T?> onDecode(
    1. PlatformDataProvider dataProvider,
    2. PlatformFormat format
    )?,
  5. FutureOr<Object?> onEncode(
    1. T value,
    2. PlatformFormat format
    )?,
})

Implementation

const SimplePlatformCodec({
  List<PlatformFormat>? formats,
  List<PlatformFormat>? encodingFormats,
  List<PlatformFormat>? decodingFormats,
  this.onDecode,
  this.onEncode,
})  : _formats = formats,
      _encodingFormats = encodingFormats,
      _decodingFormats = decodingFormats;