part of 'plot_detail_bloc.dart'; abstract class PlotDetailState extends Equatable { const PlotDetailState(); @override List get props => []; } class PlotDetailInitial extends PlotDetailState {} class PlotDetailLoading extends PlotDetailState {} class PlotDetailFailure extends PlotDetailState { final String errorString; PlotDetailFailure({@required this.errorString}); } class PlotDetailSuccess extends PlotDetailState { final List items; final int page; final bool hasReachedMax; const PlotDetailSuccess({this.items, this.page, this.hasReachedMax}); PlotDetailSuccess copyWith({List items, int page, bool hasReachedMax}) { return PlotDetailSuccess( items: items ?? this.items, page: page ?? this.page, hasReachedMax: hasReachedMax ?? this.hasReachedMax); } @override List get props => [items, hasReachedMax]; }