copyWith method

CheckoutData copyWith({
  1. Map<String, dynamic>? metadata,
  2. Order? order,
  3. Shopper? shopper,
})

Implementation

CheckoutData copyWith({
  Map<String, dynamic>? metadata,
  Order? order,
  Shopper? shopper,
}) =>
    CheckoutData(
      metadata: metadata ?? this.metadata,
      order: order ?? this.order,
      shopper: shopper ?? this.shopper,
    );