toggleVisibility method

void toggleVisibility()

Implementation

void toggleVisibility() => _isVisible ? hide() : show();