encodeValue method
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();
}