toggle method

bool toggle()

Reverse the value of bool

Implementation

bool toggle() => !this;