This commit is contained in:
Henry Hiles 2025-01-04 12:28:12 -05:00
parent 993d9867d2
commit ffcf87bfee
8 changed files with 3 additions and 78 deletions

View file

@ -10,11 +10,9 @@ part 'decorations_provider.g.dart';
Decorations decorations(Ref ref) {
List<YaruWindowControlType> parse(String section) => section
.split(",")
.map(
(button) => YaruWindowControlType.values.firstWhereOrNull(
(element) => element.name == button,
),
)
.map((button) => YaruWindowControlType.values.firstWhereOrNull(
(element) => element.name == button,
))
.nonNulls
.toList();