copyWith method
NotificationData
copyWith({
- String? title,
- String? body,
- PushNotificationPayload? payload,
- String? linkMobile,
Creates a copy of this notification data with the given fields replaced
Implementation
NotificationData copyWith({
String? title,
String? body,
PushNotificationPayload? payload,
String? linkMobile,
}) {
return NotificationData(
title: title ?? this.title,
body: body ?? this.body,
payload: payload ?? this.payload,
linkMobile: linkMobile ?? this.linkMobile,
);
}