queryAll method

Future<List<T>> queryAll(
  1. bool test(
    1. T value
    ), {
  2. int? parentId,
})

Query All Box<List<T>>

Implementation

Future<List<T>> queryAll(bool Function(T value) test, {int? parentId}) async {
  final list = <T>[];
  for (var item in await getAll(parentId: parentId)) {
    if (test(item)) {
      list.add(item);
    }
  }
  return list;
}