count method Null safety

Future<int> count()

Counts the number of ManagedObject instances in the database.

Note: this can be an expensive query. Consult the documentation for the underlying database.

Example:

    var query = Query<User>();
    var totalUsers = await query.reduce.count();

Implementation

Future<int> count();