-
-
Notifications
You must be signed in to change notification settings - Fork 47
/
materials_event.dart
27 lines (18 loc) · 904 Bytes
/
materials_event.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
part of 'materials_bloc.dart';
@freezed
class MaterialsEvent with _$MaterialsEvent {
const factory MaterialsEvent.init({
@Default(false) bool force,
@Default(<String>[]) List<String> excludeKeys,
}) = _Init;
const factory MaterialsEvent.searchChanged({
required String search,
}) = _SearchChanged;
const factory MaterialsEvent.rarityChanged(int rarity) = _RarityChanged;
const factory MaterialsEvent.typeChanged(MaterialType? type) = _TypeChanged;
const factory MaterialsEvent.filterTypeChanged(MaterialFilterType type) = _FilterTypeChanged;
const factory MaterialsEvent.applyFilterChanges() = _ApplyFilterChanges;
const factory MaterialsEvent.sortDirectionTypeChanged(SortDirectionType sortDirectionType) = _SortDirectionTypeChanged;
const factory MaterialsEvent.cancelChanges() = _CancelChanges;
const factory MaterialsEvent.resetFilters() = _ResetFilters;
}