toggle method

void toggle()

Toggles the boolean value.

Implementation

void toggle() {
  value = !value;
}