addBool method

void addBool(
  1. bool v
)

The next number is 1 for v, else 0.

Implementation

void addBool(bool v) => add(v ? 1 : 0);