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