getSize method
Returns the size of the collection in bytes. Not supported on web.
For non-web apps, this method is extremely fast and independent of the number of objects in the collection.
Implementation
@override
Future<int> getSize({
bool includeIndexes = false,
bool includeLinks = false,
}) {
return _spanHelper.asyncWrapInSpan(
'getSize',
() {
return _isarCollection.getSize(
includeIndexes: includeIndexes,
includeLinks: includeLinks,
);
},
dbName: _dbName,
collectionName: name,
);
}