1234567891011121314151617181920212223242526272829303132333435363738 |
- import 'package:widgets/load_state_layout.dart';
- class InProgressState {
- //页面 LoadView 状态的展示
- LoadState loadingState;
- String? errorMessage;
- String? keyword;
- bool? isLiked;
- List<Map<String, dynamic>> list;
- InProgressState({
- this.loadingState = LoadState.State_Loading,
- String? errorMessage,
- this.keyword,
- this.isLiked,
- required this.list,
- });
- InProgressState copyWith({
- LoadState? loadingState,
- String? errorMessage,
- String? keyword,
- bool? isLiked,
- Map<String, dynamic>? activeSortMap,
- List<Map<String, dynamic>>? activeCateGoryList,
- List<Map<String, dynamic>>? list,
- }) {
- return InProgressState(
- loadingState: loadingState ?? this.loadingState,
- errorMessage: errorMessage ?? this.errorMessage,
- keyword: keyword ?? this.keyword,
- isLiked: isLiked ?? this.isLiked,
- list: list ?? this.list,
- );
- }
- }
|