getAnimCacheDir method
获取动画缓存文件夹(安卓/iOS)
Implementation
Future<String?> getAnimCacheDir() async {
if (_animCacheDir == null) {
if (PlatformUtils.isAndroid() || PlatformUtils.isIos()) {
try {
Directory supportDir = await getApplicationSupportDirectory();
_animCacheDir = "${supportDir.path}/svga";
} on Exception catch (e) {
_log("getAnimCacheDir $e");
_animCacheDir = null;
}
} else {
_animCacheDir = null;
}
}
return _animCacheDir;
}