all method

bool all(
  1. bool pred(
    1. T
    )
)

This is true if all invocations of the given predicate on items in the collection are true.

Call the given predicate on each item in the collection. As soon as a call returns false, this returns false. Otherwise this returns true. For an empty collection this returns true. @expose @param {function(T):boolean} pred This function must not have any side-effects. @return {boolean} True if all predicate calls are true; false otherwise. @since 1.4

Implementation

_i2.bool all(_i2.bool Function(T) pred) => _i4.callMethod(
      this,
      'all',
      [_i4.allowInterop(pred)],
    );