copyWith method
Implementation
NotificationsState copyWith({
List<AppNotification>? notifications,
int? unreadCount,
bool? isLoading,
String? error,
bool? hasNextPage,
int? currentPage,
}) => NotificationsState(
notifications: notifications ?? this.notifications,
unreadCount: unreadCount ?? this.unreadCount,
isLoading: isLoading ?? this.isLoading,
error: error,
hasNextPage: hasNextPage ?? this.hasNextPage,
currentPage: currentPage ?? this.currentPage,
);