write method
Implementation
@override
void write(cbor.Encoder encoder) {
if (kIsWeb) {
var data = serializeValue(0, 27, _value.toRadixString(16));
var buf = Uint8Buffer();
buf.addAll(data.asUint8List());
encoder.addBuilderOutput(buf);
} else {
encoder.writeInt(_value.toInt());
}
}