countEntries method

Future<int> countEntries({
  1. ConditionQuery where(
    1. T model
    )?,
})

Count the entries of this table with where if required.

Implementation

Future<int> countEntries({
  ConditionQuery Function(T model)? where,
}) async {
  return await queryFirstValue((s) => s.id.count(), where: where);
}