part of 'infinity_scroll_bloc.dart'; abstract class InfinityScrollState extends Equatable { const InfinityScrollState(); @override List get props => []; } class InfinityScrollInitial extends InfinityScrollState {} class InfinityScrollFailure extends InfinityScrollState {} class InfinityScrollSuccess extends InfinityScrollState { final List items; final int page; final bool hasReachedMax; const InfinityScrollSuccess({this.items, this.page, this.hasReachedMax}); InfinityScrollSuccess copyWith( {List items, int page, bool hasReachedMax}) { return InfinityScrollSuccess( items: items ?? this.items, page: page ?? this.page, hasReachedMax: hasReachedMax ?? this.hasReachedMax); } @override List get props => [items, hasReachedMax]; }