storeSize property

double get storeSize

Retrieve the size of the store in kibibytes (KiB)

For asynchronous version, see storeSizeAsync.

Includes all files beneath the store, not necessarily just tiles.

Implementation

double get storeSize =>
    double.tryParse(
      _csgSync(
        'size',
        () => _access.real
            .listSync(recursive: true)
            .map((e) => e is File ? e.lengthSync() / 1024 : 0)
            .sum,
      ),
    ) ??
    0;