any method
This is true if any invocation of the given predicate on items in the collection is true.
Call the given predicate on each item in the collection. As soon as a call returns true, this returns true. Otherwise this returns false. For an empty collection this returns false. @expose @param {function(T):boolean} pred This function must not have any side-effects. @return {boolean} True if any predicate call is true; false otherwise. @since 1.4
Implementation
_i2.bool any(_i2.bool Function(T) pred) => _i4.callMethod(
this,
'any',
[_i4.allowInterop(pred)],
);