where method

List<T> where(
  1. bool predicate(
    1. T
    )
)

Implementation

List<T> where(bool Function(T) predicate) {
  final list = _harnCollection.where((e) => predicate(fromMap(e)));
  final response = list.map((e) => fromMap(e)).toList();
  harnLog.register({"where": response});
  return response;
}