copyWith method

PayData copyWith({
  1. Order? order,
  2. Customer? customer,
  3. Card? card,
  4. User? user,
})

Implementation

PayData copyWith({
  Order? order,
  Customer? customer,
  Card? card,
  User? user,
}) {
  return PayData(
    order: order ?? this.order,
    customer: customer ?? this.customer,
    card: card ?? this.card,
    user: user ?? this.user,
  );
}