encode method

  1. @override
Uint8List encode(
  1. CustomMetadata value
)
override

Convert self to an owned vector.

Implementation

@override
Uint8List encode(CustomMetadata value) {
  final output = ByteOutput(sizeHint(value));
  encodeTo(value, output);
  return output.toBytes(copy: false);
}