decodeBinaryValue method

  1. @protected
dynamic decodeBinaryValue(
  1. Uint8List bytes,
  2. dynamic fromEncodable(
    1. Map<String, dynamic>
    )?
)
inherited

Returns a value decoded from the provided binary value

  • bytes: The list of bytes
  • fromEncodable: An function that converts between the Map representation and the object

Returns decoded value from the provided binary value

Implementation

@protected
dynamic decodeBinaryValue(
    Uint8List bytes, dynamic Function(Map<String, dynamic>)? fromEncodable) {
  final reader =
      codec.decoder(Uint8List.fromList(bytes), fromEncodable: fromEncodable);

  return reader.read();
}