This short action will flush the local cash completely. Works only for non-persistent caches afaik.
CUSTOM ACTION:
no return
no parameters
Require Pub Dev Dependency:
flutter_cache_manager: ^3.3.0Code Snippet:
import 'package:flutter_cache_manager/flutter_cache_manager.dart';
Future flushLocalCache() async {
DefaultCacheManager().emptyCache();
}
Et voilá! For all of you that use complex setups with local variables because atm they are more difficult and uncomfortable to handle than backend calls (that does not have to stay like that though dear devs^^) Saves Fingers from bleeding...literally👍😀