in_progress_state.dart 956 B

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