Advertisement
rifki_cs29

CategoryFilterEvent

Mar 11th, 2022
1,113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Dart 0.91 KB | None | 0 0
  1. part of 'category_filter_bloc.dart';
  2.  
  3. abstract class CategoryFilterEvent extends Equatable {
  4.   const CategoryFilterEvent();
  5.  
  6.   @override
  7.   List<Object> get props => [];
  8. }
  9.  
  10. class OnSelectedLocation extends CategoryFilterEvent {
  11.   final String location;
  12.  
  13.   const OnSelectedLocation(this.location);
  14.  
  15.   @override
  16.   List<Object> get props => [location];
  17. }
  18.  
  19. class OnSelectedCategory extends CategoryFilterEvent {
  20.   final String category;
  21.  
  22.   const OnSelectedCategory(this.category);
  23.  
  24.   @override
  25.   List<Object> get props => [category];
  26. }
  27.  
  28. class OnSelectedCondition extends CategoryFilterEvent {
  29.   final String condition;
  30.  
  31.   const OnSelectedCondition(this.condition);
  32.  
  33.   @override
  34.   List<Object> get props => [condition];
  35. }
  36.  
  37. class OnSelectedCourier extends CategoryFilterEvent {
  38.   final String courier;
  39.  
  40.   const OnSelectedCourier(this.courier);
  41.  
  42.   @override
  43.   List<Object> get props => [courier];
  44. }
  45.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement