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
794B

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