toggled property

bool get toggled

Returns the opposite of the boolean value.

Example:

bool flag = true;
print(flag.toggled); // false

Implementation

bool get toggled => !this;