part of 'plot_bloc.dart'; abstract class PlotState extends Equatable { const PlotState(); @override List get props => []; } class PlotInitial extends PlotState {} class PlotLoading extends PlotState {} class PlotFailure extends PlotState { final String errorString; PlotFailure({@required this.errorString}); } class PlotSuccess extends PlotState { final List items; final int page; final bool hasReachedMax; const PlotSuccess({this.items, this.page, this.hasReachedMax}); PlotSuccess copyWith({List items, int page, bool hasReachedMax}) { return PlotSuccess( items: items ?? this.items, page: page ?? this.page, hasReachedMax: hasReachedMax ?? this.hasReachedMax); } @override List get props => [items, hasReachedMax]; }