toggle property

bool get toggle

Returns false if this boolean is true, and true if this boolean is false.

Example: true.toggle -> false.

Implementation

bool get toggle => !this;