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.

31 lines
661B

  1. part of 'plot_detail_bloc.dart';
  2. abstract class PlotDetailEvent {
  3. const PlotDetailEvent();
  4. @override
  5. List<Object> get props => [];
  6. }
  7. class DataFetched extends PlotDetailEvent {
  8. final int cropId;
  9. final String cropCode;
  10. DataFetched({this.cropId, this.cropCode});
  11. }
  12. class OnRefresh extends PlotDetailEvent {
  13. final int cropId;
  14. final String cropCode;
  15. OnRefresh({this.cropId, this.cropCode});
  16. }
  17. class OnUpdate<T> extends PlotDetailEvent {
  18. final List<T> currentItems;
  19. final int currentPage;
  20. final bool hasReachedMax;
  21. OnUpdate(
  22. {@required this.currentItems,
  23. @required this.currentPage,
  24. @required this.hasReachedMax});
  25. }