opt: code

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2024-12-13 10:55:05 +08:00
parent be371e002a
commit 94d055610e
5 changed files with 8 additions and 10 deletions

View File

@@ -55,7 +55,7 @@ class GStorage {
static List<Color> get blockColor {
List list = setting.get(
SettingBoxKey.blockColor,
defaultValue: List.generate(SegmentType.values.length, (_) => ''),
defaultValue: List.filled(SegmentType.values.length, ''),
);
return SegmentType.values
.map((item) => list[item.index].isNotEmpty