toMutableBytes method
Serializes this object to a mutable list of bytes.
Implementation
List<int> toMutableBytes() {
final capacity = encodeSelfCapacity();
final writer = RawWriter.withCapacity(capacity);
encodeSelf(writer);
return writer.toUint8ListView();
}