Applies to Roots & Stores
Last updated 1 year ago
© Luka Stillingfleet (JaffaKetchup)
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.
StreamBuilder
FMTC.instance.rootDirectory.stats.watchChanges(); // Roots FMTC.instance('storeName').stats.watchChanges(); // Stores
FlutterMapTileCaching.instance.rootDirectory.stats; // Roots FlutterMapTileCaching.instance('storeName').stats; // Stores