toggle method

void toggle()

Toggle the current value.

Implementation

void toggle() {
  _value = !_value;
}