getSize method

  1. @override
Future<int> getSize({
  1. bool includeIndexes = false,
  2. bool includeLinks = false,
})
override

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,
  );
}