storeSizeAsync property
Retrieve the size of the store in kibibytes (KiB)
For asynchronous version, see storeSize.
Includes all files beneath the store, not necessarily just tiles.
Implementation
Future<double> get storeSizeAsync async =>
double.tryParse(
await _csgAsync(
'size',
() async => (await _access.real
.list(recursive: true)
.asyncMap(
(e) async => e is File ? await e.length() / 1024 : 0,
)
.toList())
.sum,
),
) ??
0;