一次大的提交

This commit is contained in:
2026-08-07 08:49:29 +08:00
parent bf2fc49c19
commit db70665ced
181 changed files with 23060 additions and 2804 deletions

View File

@@ -20,27 +20,56 @@ class AlarmLoading extends AlarmState {}
/// 加载成功状态
class AlarmLoaded extends AlarmState {
const AlarmLoaded({
required this.allAlarms,
required this.alarms,
required this.count,
this.selectedFilter = AlarmFilterTab.all,
this.currentPage = 1,
this.hasMore = true,
this.isLoadingMore = false,
this.isCountLoading = false,
});
final List<AlarmEntity> allAlarms;
final List<AlarmEntity> alarms;
final AlarmCountEntity count;
final AlarmFilterTab selectedFilter;
final int currentPage;
final bool hasMore;
final bool isLoadingMore;
final bool isCountLoading;
@override
List<Object?> get props => [alarms, count, selectedFilter];
List<Object?> get props => [
allAlarms,
alarms,
count,
selectedFilter,
currentPage,
hasMore,
isLoadingMore,
isCountLoading,
];
AlarmLoaded copyWith({
List<AlarmEntity>? allAlarms,
List<AlarmEntity>? alarms,
AlarmCountEntity? count,
AlarmFilterTab? selectedFilter,
int? currentPage,
bool? hasMore,
bool? isLoadingMore,
bool? isCountLoading,
}) {
return AlarmLoaded(
allAlarms: allAlarms ?? this.allAlarms,
alarms: alarms ?? this.alarms,
count: count ?? this.count,
selectedFilter: selectedFilter ?? this.selectedFilter,
currentPage: currentPage ?? this.currentPage,
hasMore: hasMore ?? this.hasMore,
isLoadingMore: isLoadingMore ?? this.isLoadingMore,
isCountLoading: isCountLoading ?? this.isCountLoading,
);
}
}