part of 'notification_bloc.dart';

class NotificationState extends Equatable {
  const NotificationState({
    required this.isLoading,
    required this.paginationLoading,
    required this.currentPage,
    this.pageCount,
    this.notifications,
  });

  final bool isLoading;
  final bool paginationLoading;
  final int currentPage;
  final int? pageCount;
  final List<Notifications>? notifications;

  NotificationState copyWith({
    bool? isLoading,
    bool? paginationLoading,
    int? currentPage,
    int? pageCount,
    List<Notifications>? notifications,
  }) {
    return NotificationState(
      isLoading: isLoading ?? this.isLoading,
      paginationLoading: paginationLoading ?? this.paginationLoading,
      currentPage: currentPage ?? this.currentPage,
      pageCount: pageCount ?? this.pageCount,
      notifications: notifications ?? this.notifications,
    );
  }

  @override
  List<Object?> get props => [
    isLoading,
    paginationLoading,
    currentPage,
    pageCount,
    notifications,
  ];
}
