toggleVisibility method

void toggleVisibility()

Toggles overlay visibility.

Implementation

void toggleVisibility() => visible = !_visible;