copyWith method
Implementation
NotificationInfo copyWith({
String? senderName,
String? imageUrl,
String? content,
String? value,
Function(String payload)? onPressed,
}) {
return NotificationInfo(
senderName: senderName ?? this.senderName,
imageUrl: imageUrl ?? this.imageUrl,
content: content ?? this.content,
value: value ?? this.value,
onPressed: onPressed ?? this.onPressed,
);
}