copyWith method
NotificationState
copyWith({
- String? message,
- String? title,
- required NotificationType type,
- 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,
);
}