copyWith method

Message copyWith({
  1. String? token,
  2. String? topic,
  3. String? condition,
  4. MessageNotification? notification,
  5. Map<String, dynamic>? data,
  6. Android? android,
  7. Apns? apns,
  8. Webpush? webpush,
})

Implementation

Message copyWith({
  String? token,
  String? topic,
  String? condition,
  MessageNotification? notification,
  Map<String, dynamic>? data,
  Android? android,
  Apns? apns,
  Webpush? webpush,
}) =>
    Message(
      token: token ?? this.token,
      topic: topic ?? this.topic,
      condition: condition ?? this.condition,
      notification: notification ?? this.notification,
      data: data ?? this.data,
      android: android ?? this.android,
      apns: apns ?? this.apns,
      webpush: webpush ?? this.webpush,
    );