copyWith method

  1. @override
NotificationTypeNewPushMessage copyWith({
  1. int? messageId,
  2. MessageSender? senderId,
  3. String? senderName,
  4. bool? isOutgoing,
  5. PushMessageContent? content,
})
override

Implementation

@override
NotificationTypeNewPushMessage copyWith({
  int? messageId,
  MessageSender? senderId,
  String? senderName,
  bool? isOutgoing,
  PushMessageContent? content,
}) => NotificationTypeNewPushMessage(
  messageId: messageId ?? this.messageId,
  senderId: senderId ?? this.senderId,
  senderName: senderName ?? this.senderName,
  isOutgoing: isOutgoing ?? this.isOutgoing,
  content: content ?? this.content,
);