precache svg data
Future<void> precacheSvgFile(String imageUri) async { final loader = SvgAssetLoader(imageUri); await svg.cache .putIfAbsent(loader.cacheKey(null), () => loader.loadBytes(null)); }