anyFalse property
bool
get
anyFalse
Checks if any element in the iterable is false
.
This getter iterates through each element in the iterable. If it
encounters an element that is false
, it returns true
. If no such
element is found after iterating through all elements, it returns
false
.
Returns:
true
if at least one element in the iterable isfalse
.false
if no elements in the iterable arefalse
or the iterable is empty.
Implementation
bool get anyFalse => where((bool e) => !e).isNotEmpty;