copyWith method

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

Implementation

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