addBool method Null safety

void addBool(
  1. {required bool val}
)

Add a bool, true is 1, false is 0

Implementation

void addBool({required bool val}) {
  val ? addByte(1) : addByte(0);
}