countWhere method

int countWhere(
  1. bool test(
    1. T object
    )
)

Count objects matching a predicate

Implementation

int countWhere(bool Function(T object) test) =>
    _objects.values.where(test).length;