count method

Future<int> count({
  1. Filter filter = Filter.empty,
})

Returns the count of all entries matching the filter.

Implementation

Future<int> count({Filter filter = Filter.empty}) async {
  return await transaction(
    (context) async => await context.count(
      bean,
      filter: filter,
    ),
  );
}