toggle method

void toggle()

Implementation

void toggle() => value = !_value;