part of 'plot_detail_bloc.dart'; abstract class PlotDetailState { 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 T? ownerItem; final List items; final int page; final bool hasReachedMax; const PlotDetailSuccess({this.ownerItem, required this.items, required this.page, required this.hasReachedMax}); PlotDetailSuccess copyWith({required List items, required int page, required bool hasReachedMax}) { return PlotDetailSuccess(items: items ?? this.items, page: page ?? this.page, hasReachedMax: hasReachedMax ?? this.hasReachedMax); } @override List get props => [items, hasReachedMax]; }