encodeValue method
Encode the value. This needs to be public because it is used by encodeValue() from different types. @internal
Implementation
@override
Uint8List encodeValue(dynamic x) {
var len = lebEncode(x.length);
if (_blobOptimization) {
return u8aConcat([len, Uint8List.fromList(x as List<int>)]);
}
return u8aConcat([
len,
...x.map((dynamic d) => tryToJson(_type, d) ?? _type.encodeValue(d))
]);
}