MsgPackReader constructor

MsgPackReader(
  1. Uint8List list, {
  2. MsgPackReaderMode mode = MsgPackReaderMode.standard,
  3. dynamic fromEncodable(
    1. Map<String, dynamic>
    )?,
  4. List<MsgPackExtension>? extensions,
})

Builds a MsgPackReader deserializer

  • list: The Uint8List byte buffer to read the object from
  • fromEncodable: A custom function the converts the deserialized Map<String, dynamic> representation of the object into the object
  • extensions: A optional list of extensions to use

Implementation

MsgPackReader(super.list,
    {this.mode = MsgPackReaderMode.standard,
    dynamic Function(Map<String, dynamic>)? fromEncodable,
    List<MsgPackExtension>? extensions})
    : _fromEncodable = fromEncodable ?? _defaultFromEncodable,
      _extensions = [const DateTimeExtension(), ...?extensions];