diff --git a/lib/redux/ui/pref_state.dart b/lib/redux/ui/pref_state.dart index 5103efd68..a7fd0ba54 100644 --- a/lib/redux/ui/pref_state.dart +++ b/lib/redux/ui/pref_state.dart @@ -69,6 +69,8 @@ abstract class PrefState implements Built { String get colorTheme; + //BuiltMap> get sortFields; + ColorTheme get colorThemeModel => colorThemesMap.containsKey(colorTheme) ? colorThemesMap[colorTheme] : colorThemesMap[kColorThemeLight]; @@ -125,6 +127,29 @@ abstract class PrefState implements Built { static Serializer get serializer => _$prefStateSerializer; } +abstract class PrefStateSortField + implements Built { + factory PrefStateSortField() { + return _$PrefStateSortField._( + field: '', + ascending: '', + ); + } + + PrefStateSortField._(); + + @override + @memoized + int get hashCode; + + String get field; + + bool get ascending; + + static Serializer get serializer => + _$prefStateSortFieldSerializer; +} + abstract class CompanyPrefState implements Built { factory CompanyPrefState({