123456789101112131415161718192021222324252627282930313233 |
- import 'package:domain/entity/feedback_list_entity.dart';
- import 'package:widgets/load_state_layout.dart';
- class FeedbackProgressState {
- //页面 LoadView 状态的展示
- LoadState loadingState;
- String? errorMessage;
- List<FeedbackItemEntity> datas; //页面列表数据
- // =================================== Begin ↓ ===================================
- FeedbackProgressState({
- this.loadingState = LoadState.State_Loading,
- this.errorMessage,
- required this.datas,
- });
- FeedbackProgressState copyWith({
- LoadState? loadingState,
- String? errorMessage,
- bool? needShowPlaceholder,
- List<FeedbackItemEntity>? datas,
- }) {
- return FeedbackProgressState(
- errorMessage: errorMessage ?? this.errorMessage,
- loadingState: loadingState ?? this.loadingState,
- datas: datas ?? this.datas,
- );
- }
- }
|