facility_deposit_state.dart 989 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. import 'package:domain/entity/facility_page_entity.dart';
  2. import 'package:widgets/load_state_layout.dart';
  3. class FacilityDepositState {
  4. //页面 LoadView 状态的展示
  5. LoadState loadingState;
  6. String? errorMessage;
  7. String? totalDeposit; //总金额
  8. List<FacilityDetail> datas; //页面列表数据
  9. // =================================== Begin ↓ ===================================
  10. FacilityDepositState({
  11. this.loadingState = LoadState.State_Loading,
  12. this.errorMessage,
  13. this.totalDeposit,
  14. required this.datas,
  15. });
  16. FacilityDepositState copyWith({
  17. LoadState? loadingState,
  18. String? errorMessage,
  19. bool? needShowPlaceholder,
  20. List<FacilityDetail>? datas,
  21. String? totalDeposit,
  22. }) {
  23. return FacilityDepositState(
  24. errorMessage: errorMessage ?? this.errorMessage,
  25. loadingState: loadingState ?? this.loadingState,
  26. datas: datas ?? this.datas,
  27. totalDeposit: totalDeposit ?? this.totalDeposit,
  28. );
  29. }
  30. }