count method Null safety

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

Count the amount of domains. By default calling the length of findAll().

Implementation

@override
Future<int> count() {
  return repo.count();
}