property_news_state.dart 847 B

12345678910111213141516171819202122232425262728293031
  1. /// YApi QuickType插件生成,具体参考文档:https://plugins.jetbrains.com/plugin/18847-yapi-quicktype/documentation
  2. import 'dart:convert';
  3. import 'package:widgets/load_state_layout.dart';
  4. class PropertyNewsState {
  5. //页面 LoadView 状态的展示
  6. LoadState loadingState;
  7. String? errorMessage;
  8. List<Map<String, dynamic>>? list;
  9. PropertyNewsState({
  10. this.loadingState = LoadState.State_Loading,
  11. String? errorMessage,
  12. required this.list,
  13. });
  14. PropertyNewsState copyWith({
  15. LoadState? loadingState,
  16. String? errorMessage,
  17. List<Map<String, dynamic>>? list,
  18. }) {
  19. return PropertyNewsState(
  20. loadingState: loadingState ?? this.loadingState,
  21. errorMessage: errorMessage ?? this.errorMessage,
  22. list: list ?? this.list,
  23. );
  24. }
  25. }