* opt: downloadImg use cache

* opt: uin8 cast

* non null ext
This commit is contained in:
My-Responsitories
2025-10-14 19:36:43 +08:00
committed by GitHub
parent 43beb518f4
commit c3fa976b26
6 changed files with 84 additions and 59 deletions

View File

@@ -57,7 +57,7 @@ abstract class CacheManage {
value = value / 1024;
}
String size = value.toStringAsFixed(2);
return size + unitArr.getOrElse(index, orElse: () => '');
return size + (unitArr.getOrNull(index) ?? '');
}
// 清除 Library/Caches 目录及文件缓存