countFalse property
int
get
countFalse
Counts the number of false
values in the iterable.
This getter iterates through each element in the iterable and increments
a counter each time it encounters a false
value. The final count is
returned.
Returns:
- The number of
false
values in the iterable.
Implementation
int get countFalse => where((bool e) => !e).length;