All pages
Powered by GitBook
1 of 1

Statistics

Applies to Roots & Stores

FlutterMapTileCaching.instance.rootDirectory.stats; // Roots
FlutterMapTileCaching.instance('storeName').stats; // Stores
LogoRootStats class - flutter_map_tile_caching library - Dart API
LogoStoreStats class - flutter_map_tile_caching library - Dart API

Watching For Changes

FMTC.instance.rootDirectory.stats.watchChanges(); // Roots
FMTC.instance('storeName').stats.watchChanges(); // Stores

It is possible to watch for changes in structures, which can be useful to create dynamic UIs (using StreamBuilders) that consume the other statistics. There are lots of customization options to increase efficiency and reduce junk/useless rebuilds.

LogowatchChanges method - RootStats class - flutter_map_tile_caching library - Dart API
LogowatchChanges method - StoreStats class - flutter_map_tile_caching library - Dart API