writeBoolean method

void writeBoolean(
  1. bool? value
)

Implementation

void writeBoolean(bool? value) {
  if (value == null) {
    writeNil();
    return;
  }

  _bytesBuilder
      .addByte(value ? MessagePackCode.true_ : MessagePackCode.false_);
}