toggle method
Returns the opposite boolean value.
Behavior:
true→falsefalse→truenull→true
Example:
dart bool? flag = null; flag.toggle(); // true
Implementation
bool toggle() => validate().toggle();
Returns the opposite boolean value.
Behavior:
true → falsefalse → truenull → trueExample:
dart bool? flag = null; flag.toggle(); // true
bool toggle() => validate().toggle();