rootSizeAsync property
Retrieve the size of the root in kibibytes (KiB)
For synchronous version, see rootSize.
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
Future<double> get rootSizeAsync async =>
double.tryParse(
await _csgAsync(
'size',
() async => (await Future.wait(
(await storesAvailableAsync).map((e) => e.stats.storeSizeAsync),
))
.sum,
),
) ??
0;