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,
})
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,
}) => 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,
);