toggle method

void toggle()

Flip hidden ↔ shown.

Implementation

void toggle() => state = !state;