copyWith method

PayEntity copyWith({
  1. String? idTransaction,
  2. String? clientId,
  3. String? idempotenceKey,
  4. double? amountFull,
  5. String? emailClient,
  6. String? phoneClient,
  7. String? callbackUrl,
  8. String? descriptionPay,
  9. List? items,
})

Implementation

PayEntity copyWith({
  String? idTransaction,
  String? clientId,
  String? idempotenceKey,
  double? amountFull,
  String? emailClient,
  String? phoneClient,
  String? callbackUrl,
  String? descriptionPay,
  List<ItemListModelSS>? items,
}) {
  return PayEntity(
    idTransaction: idTransaction ?? this.idTransaction,
    clientId: clientId ?? this.clientId,
    idempotenceKey: idempotenceKey ?? this.idempotenceKey,
    amountFull: amountFull ?? this.amountFull,
    emailClient: emailClient ?? this.emailClient,
    phoneClient: phoneClient ?? this.phoneClient,
    callbackUrl: callbackUrl ?? this.callbackUrl,
    descriptionPay: descriptionPay ?? this.descriptionPay,
    items: items ?? this.items,
  );
}