toggle method

void toggle()
override

Implementation

void toggle() {
  visible = !visible;
}