write method

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

Implementation

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