all function

  1. @JS()
bool all(
  1. List array,
  2. Function test
)

Checks whether all elements of the array pass the test. Function test gets 3 arguments passed:

  • element from the array
  • index of the element
  • reference to the source array

Implementation

@JS()
external bool all(List<dynamic> array, Function test);