rootSize property

double rootSize

Retrieve the size of the root in kibibytes (KiB)

For asynchronous version, see rootSizeAsync.

Technically just sums up the size of all sub-stores, thus ignoring any cached root statistics, etc.

Includes all files in all stores, not necessarily just tiles.

Implementation

double get rootSize =>
    double.tryParse(
      _csgSync(
        'size',
        () => storesAvailable.map((e) => e.stats.storeSize).sum,
      ),
    ) ??
    0;