everyIndexed method

bool everyIndexed(
  1. bool predicate(
    1. int index,
    2. T value
    )
)

Checks whether all elements and their respective indices satisfy the given predicate.

See every.

Implementation

bool everyIndexed(bool Function(int index, T value) predicate) =>
    mapIndexed(predicate).every(isTrue);