part of 'noti_bloc.dart'; abstract class NotiState { const NotiState(); @override List get props => []; } class NotiInitial extends NotiState {} class NotiLoadding extends NotiState {} class NotiFailure extends NotiState { final String errorString; NotiFailure({@required this.errorString}); } class NotiSuccess extends NotiState { final int unread; final int read; final List items; final int page; final bool hasReachedMax; const NotiSuccess( {this.unread, this.read, this.items, this.page, this.hasReachedMax}); NotiSuccess copyWith({List items, int page, bool hasReachedMax}) { return NotiSuccess( unread: unread ?? this.unread, read: read ?? this.read, items: items ?? this.items, page: page ?? this.page, hasReachedMax: hasReachedMax ?? this.hasReachedMax); } @override List get props => [items, hasReachedMax]; }