基础组件库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

37 lines
650 B

  1. part of 'search_bloc.dart';
  2. abstract class SearchState extends Equatable {
  3. const SearchState();
  4. @override
  5. List<Object> get props => [];
  6. }
  7. class SearchInitial extends SearchState {
  8. @override
  9. List<Object> get props => [];
  10. }
  11. /// 数据加载完毕
  12. class SearchLoadedState extends SearchInitial {
  13. List<Map<String, dynamic>> model;
  14. SearchLoadedState({this.model});
  15. @override
  16. List<Object> get props => [this.model];
  17. }
  18. /// 搜索成功
  19. class SearchSubmitSuccessState extends SearchState{
  20. }
  21. /// 搜索失败
  22. class SearchSubmitErrorState extends SearchState{
  23. }
  24. /// 数据加载出错
  25. class SearchErrorState extends SearchState {}