toggled property

bool get toggled

Returns the logical negation of this value.

A readable alternative to the ! operator when chaining.

Example:

true.toggled; // false

Implementation

bool get toggled => !this;