in_progress_state.dart 1023 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. import 'package:domain/entity/garage_sale_history_entity.dart';
  2. import 'package:widgets/load_state_layout.dart';
  3. class InProgressState {
  4. //页面 LoadView 状态的展示
  5. LoadState loadingState;
  6. String? errorMessage;
  7. String? keyword;
  8. bool? isLiked;
  9. List<GarageSaleHistoryList> list;
  10. InProgressState({
  11. this.loadingState = LoadState.State_Loading,
  12. String? errorMessage,
  13. this.keyword,
  14. this.isLiked,
  15. required this.list,
  16. });
  17. InProgressState copyWith({
  18. LoadState? loadingState,
  19. String? errorMessage,
  20. String? keyword,
  21. bool? isLiked,
  22. Map<String, dynamic>? activeSortMap,
  23. List<Map<String, dynamic>>? activeCateGoryList,
  24. List<GarageSaleHistoryList>? list,
  25. }) {
  26. return InProgressState(
  27. loadingState: loadingState ?? this.loadingState,
  28. errorMessage: errorMessage ?? this.errorMessage,
  29. keyword: keyword ?? this.keyword,
  30. isLiked: isLiked ?? this.isLiked,
  31. list: list ?? this.list,
  32. );
  33. }
  34. }