count method Null safety

Future<int> count(
  1. DatabaseClient databaseClient,
  2. {Filter? filter}
)

count records.

Implementation

Future<int> count(DatabaseClient databaseClient, {Filter? filter}) {
  final client = getClient(databaseClient);
  // no transaction needed for read
  return client
      .getSembastStore(this)
      .txnCount(client.sembastTransaction, filter);
}