dev
dart 44 lines 1.01 KB
Raw
1 abstract class SelectableItem {
2 SelectableItem({required this.title});
3 final String title;
4 }
5
6 class OptionTitle extends SelectableItem {
7 OptionTitle({required String title}) : super(title: title);
8 }
9
10 abstract class SelectableOption extends SelectableItem {
11 SelectableOption({required String title}) : super(title: title);
12
13 String get lightIconPath;
14
15 String get darkIconPath;
16
17 String? get description => null;
18
19 String? get topLeftSubTitle => null;
20
21 String? get topLeftSubTitleIconPath => null;
22
23 String? get topRightSubTitle => null;
24
25 String? get topRightSubTitleLightIconPath => null;
26
27 String? get topRightSubTitleDarkIconPath => null;
28
29 String? get bottomLeftSubTitle => null;
30
31 String? get bottomLeftSubTitleIconPath => null;
32
33 String? get bottomRightSubTitle => null;
34
35 String? get bottomRightSubTitleLightIconPath => null;
36
37 String? get bottomRightSubTitleDarkIconPath => null;
38
39 List<String> get badges => [];
40
41 bool get isOptionSelected => false;
42
43 set isOptionSelected(bool isSelected) => false;
44 }