toggle method

void toggle()

Implementation

void toggle() {
  isToggled = !isToggled;
}