toggleVisibility method

void toggleVisibility()

Implementation

void toggleVisibility() {
  setState(() {
    isVisible = !isVisible;
  });
}