count method
Returns the total number of objects in this collection.
For non-web apps, this method is extremely fast and independent of the number of objects in the collection.
Implementation
@override
Future<int> count() {
return _spanHelper.asyncWrapInSpan(
'count',
() {
return _isarCollection.count();
},
dbName: _dbName,
collectionName: name,
);
}