toggle method

bool toggle()

Returns the opposite boolean value.

Example: dart true.toggle(); // false false.toggle(); // true

Implementation

bool toggle() => !this;