* opt: _onTapUp

* opt: set contains

* opt: elementAtOrNull
This commit is contained in:
My-Responsitories
2026-02-02 20:12:12 +08:00
committed by GitHub
parent 37fa165f59
commit 7260a387f9
12 changed files with 46 additions and 36 deletions

View File

@@ -1,7 +1,6 @@
import 'dart:async';
import 'dart:io';
import 'package:PiliPlus/utils/extension/iterable_ext.dart';
import 'package:PiliPlus/utils/platform_utils.dart';
import 'package:PiliPlus/utils/storage_pref.dart';
import 'package:path_provider/path_provider.dart';
@@ -55,7 +54,7 @@ abstract final class CacheManager {
value = value / 1024;
}
String size = value.toStringAsFixed(2);
return size + (unitArr.getOrNull(index) ?? '');
return size + (unitArr.elementAtOrNull(index) ?? '');
}
// 清除 Library/Caches 目录及文件缓存