copyWith method

NotificationState copyWith({
  1. String? message,
  2. String? title,
  3. required NotificationType type,
  4. bool? hasNotification,
})

Implementation

NotificationState copyWith({
  String? message,
  String? title,
  required NotificationType type,
  bool? hasNotification,
}) {
  return NotificationState(
    message: message ?? this.message,
    title: title ?? this.title,
    type: type,
    hasNotification: hasNotification ?? this.hasNotification,
  );
}