copyWith method

  1. @override
InputMessageInvoice copyWith({
  1. Invoice? invoice,
  2. String? title,
  3. String? description,
  4. String? photoUrl,
  5. int? photoSize,
  6. int? photoWidth,
  7. int? photoHeight,
  8. String? payload,
  9. String? providerToken,
  10. String? providerData,
  11. String? startParameter,
  12. InputMessageContent? extendedMediaContent,
})
override

Implementation

@override
InputMessageInvoice copyWith({
  Invoice? invoice,
  String? title,
  String? description,
  String? photoUrl,
  int? photoSize,
  int? photoWidth,
  int? photoHeight,
  String? payload,
  String? providerToken,
  String? providerData,
  String? startParameter,
  InputMessageContent? extendedMediaContent,
}) =>
    InputMessageInvoice(
      invoice: invoice ?? this.invoice,
      title: title ?? this.title,
      description: description ?? this.description,
      photoUrl: photoUrl ?? this.photoUrl,
      photoSize: photoSize ?? this.photoSize,
      photoWidth: photoWidth ?? this.photoWidth,
      photoHeight: photoHeight ?? this.photoHeight,
      payload: payload ?? this.payload,
      providerToken: providerToken ?? this.providerToken,
      providerData: providerData ?? this.providerData,
      startParameter: startParameter ?? this.startParameter,
      extendedMediaContent: extendedMediaContent ?? this.extendedMediaContent,
    );