count method

  1. @override
Future<int> count()
override

Runs the query and returns the number of results.

Implementation

@override
Future<int> count() async {
  final results = await findAll();
  return results.length;
}