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.

35 lines
827B

  1. part of 'location_bloc.dart';
  2. abstract class LocationEvent extends Equatable {
  3. const LocationEvent();
  4. @override
  5. List<Object> get props => [];
  6. }
  7. class DataFetched extends LocationEvent {
  8. final LocationType locationType;
  9. final int selectedId;
  10. final int filterId;
  11. DataFetched({@required this.locationType, this.selectedId, this.filterId});
  12. }
  13. class OnRefresh extends LocationEvent {
  14. final LocationType locationType;
  15. final int selectedId;
  16. final int filterId;
  17. OnRefresh({@required this.locationType, this.selectedId, this.filterId});
  18. }
  19. class OnSearch extends LocationEvent {
  20. final LocationType locationType;
  21. final String searchString;
  22. final int selectedId;
  23. final int filterId;
  24. OnSearch(
  25. {@required this.locationType,
  26. this.searchString,
  27. this.selectedId,
  28. this.filterId});
  29. }