toggle method

  1. @override
void toggle()
override

Implementation

@override
void toggle() {
  visible = !visible;
}