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 key/value pair 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(KeyValuePair.<K,V>):boolean} pred The argument to the predicate will be an object with both "key" and "value" properties. 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(_i3.KeyValuePair<K, V>) pred) =>
_i4.callMethod(
this,
'any',
[_i4.allowInterop(pred)],
);