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