toggle method

void toggle()

Implementation

void toggle() => visible.value = !visible.value;