getSizeSync abstract method

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

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

int getSizeSync({bool includeIndexes = false, bool includeLinks = false});