encodeValue method

  1. @protected
Uint8List encodeValue(
  1. dynamic value
)
inherited

Encodes a value into a list of bytes

  • value: The value to encode

Returns the value encoded as a list of bytes

Implementation

@protected
Uint8List encodeValue(dynamic value) {
  final writer = codec.encoder();

  writer.write(value);

  return writer.takeBytes();
}