community_state.dart 750 B

12345678910111213141516171819202122232425262728293031
  1. import 'package:equatable/equatable.dart';
  2. import 'package:eye_video/bizmodule/main/community/model/community_model.dart';
  3. abstract class CommunityState extends Equatable {
  4. @override
  5. List<Object> get props => [];
  6. const CommunityState();
  7. }
  8. class StateRequestSuccess extends CommunityState {
  9. final List<Community> communityList;
  10. final bool hasNextPage;
  11. const StateRequestSuccess(this.communityList, this.hasNextPage);
  12. List<Object> get props => [communityList, hasNextPage];
  13. }
  14. class StateRequestLoading extends CommunityState {
  15. List<Object> get props => [];
  16. }
  17. class StateRequestFailure extends CommunityState {
  18. List<Object> get props => [];
  19. }
  20. class StateRequestEmpty extends CommunityState {
  21. List<Object> get props => [];
  22. }