copyWith method
NiceNotificationItem
copyWith({
- String? id,
- String? title,
- String? message,
- NiceNotificationType? type,
- DateTime? timestamp,
- String? actionLabel,
- VoidCallback? onAction,
- bool? read,
- Map<
String, dynamic> ? data,
Implementation
NiceNotificationItem copyWith({
String? id,
String? title,
String? message,
NiceNotificationType? type,
DateTime? timestamp,
String? actionLabel,
VoidCallback? onAction,
bool? read,
Map<String, dynamic>? data,
}) {
return NiceNotificationItem(
id: id ?? this.id,
title: title ?? this.title,
message: message ?? this.message,
type: type ?? this.type,
timestamp: timestamp ?? this.timestamp,
actionLabel: actionLabel ?? this.actionLabel,
onAction: onAction ?? this.onAction,
read: read ?? this.read,
data: data ?? this.data,
);
}