part of 'noti_bloc.dart'; abstract class NotiEvent extends Equatable { const NotiEvent(); @override List get props => []; } class DataFetched extends NotiEvent {} class OnRefresh extends NotiEvent {} class OnRefreshFromNotification extends NotiEvent {} class OnUpdate extends NotiEvent { final int unread; final int read; final int currentItemId; final List currentItems; final int currentPage; final bool hasReachedMax; OnUpdate( {@required this.unread, @required this.read, this.currentItemId, @required this.currentItems, @required this.currentPage, @required this.hasReachedMax}); } class MarkAllNotificationUpdate extends NotiEvent { final String status; MarkAllNotificationUpdate({@required this.status}); } class ReceiveDataFromSocket extends NotiEvent { final List currentItems; final int page; final bool hasReachedMax; final NotificationObjectDTO updatedItemObject; ReceiveDataFromSocket( {@required this.currentItems, this.page, this.hasReachedMax, this.updatedItemObject}); }