write method

  1. @override
void write(
  1. Encoder encoder,
  2. Principal value
)
override

Implementation

@override
void write(cbor.Encoder encoder, Principal value) {
  var valBuff = Uint8Buffer();
  valBuff.addAll(value.toUint8Array());
  encoder.writeBytes(valBuff);
}