all method

bool all(
  1. bool test(
    1. E e
    )
)

Returns true if all elements in the list satisfy the given test.

Implementation

bool all(bool Function(E e) test) => where(test).length == length;