encodeValue method

  1. @override
Uint8List encodeValue(
  1. String x
)
override

Encode the value. This needs to be public because it is used by encodeValue() from different types. @internal

Implementation

@override
Uint8List encodeValue(String x) {
  final buf = x.plainToU8a(useDartEncode: true);
  final len = lebEncode(buf.length);
  return u8aConcat([len, buf]);
}