copyWith method

  1. @override
ChatNewMessageNotification copyWith({
  1. String? title,
  2. String? body,
  3. NotificationSender? sender,
  4. VerifyToSendNotification? verify,
  5. OnDeniedToSendNotification? onDenied,
})
override

Implementation

@override
ChatNewMessageNotification copyWith({
  String? title,
  String? body,
  NotificationSender? sender,
  VerifyToSendNotification? verify,
  OnDeniedToSendNotification? onDenied,
}) {
  return ChatNewMessageNotification(
    title: title ?? this.title,
    body: body ?? this.body,
    sender: sender ?? this.sender,
    verify: verify ?? this.verify,
    onDenied: onDenied ?? this.onDenied,
  );
}