getSizeSync method

  1. @override
int getSizeSync({
  1. bool includeIndexes = false,
  2. bool includeLinks = false,
})
override

Returns the size of all collections in bytes. Not supported on web.

This method is extremely fast and independent of the number of objects in the instance.

Implementation

@override
int getSizeSync({bool includeIndexes = false, bool includeLinks = false}) {
  return _spanHelper.syncWrapInSpan(
    'getSizeSync',
    () {
      return _isar.getSizeSync(
        includeIndexes: includeIndexes,
        includeLinks: includeLinks,
      );
    },
    dbName: name,
  );
}