countAsync method

Future<int> countAsync()

Count how many objects match the query.

This operation is much faster than using findAll().length.

Implementation

Future<int> countAsync() => _withQueryAsync((q) => q.countAsync());