addBool method

  1. @override
void addBool(
  1. int field,
  2. bool? value, [
  3. bool? def
])
override

Add the field with the given boolean value. The field is not added if the value is equal to def. Booleans are stored as 8-bit fields with 0 for false and 1 for true.

Implementation

@override
void addBool(int field, bool? value, [bool? def]) =>
    _write(() => _builder.addBool(field, value, def));