toggle method
Toggles the boolean value.
Returns true
if the original value was false
, and vice versa.
Implementation
bool toggle() {
return !this;
}
Toggles the boolean value.
Returns true
if the original value was false
, and vice versa.
bool toggle() {
return !this;
}