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