Update ProxyGroup Sort

This commit is contained in:
chen08209
2024-05-03 14:31:10 +08:00
parent c77463f337
commit 949a2aaac3
9 changed files with 224 additions and 76 deletions

View File

@@ -9,8 +9,7 @@ extension GroupTypeExtension on GroupType {
)
.toList();
static GroupType? getGroupType(String? value) {
if (value == null) return null;
static GroupType? getGroupType(String value) {
final index = GroupTypeExtension.valueList.indexOf(value);
if (index == -1) return null;
return GroupType.values[index];