rootLength property Null safety

int rootLength

Retrieve the number of all stored tiles

Prefer rootLengthAsync to avoid blocking the UI thread. Otherwise, this has slightly better performance.

Internally sums up the length of all stores (using StoreStats.storeLength).

Implementation

int get rootLength => storesAvailable.map((e) => e.stats.storeLength).sum;