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 is false.
  • false if no elements in the iterable are false or the iterable is empty.

Implementation

bool get anyFalse => where((bool e) => !e).isNotEmpty;