toggle method

void toggle()

Flips the value. visible.toggle()

Implementation

void toggle() => value = !_value;