Toggle method

bool Toggle()

Toggles the boolean value and returns the new value.

Implementation

bool Toggle() => !this;