countWhere method

int countWhere(
  1. bool predicate(
    1. dynamic
    )
)

Implementation

int countWhere(bool Function(dynamic) predicate) {
  return collection.values.where(predicate).length;
}