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;
Returns false if this boolean is true, and true if this boolean is false.
Example: true.toggle -> false.
bool get toggle => !this;