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() => isar.readAsync((isar) => count());