copyWith method

Pricing copyWith({
  1. num? total,
  2. num? products,
})

Implementation

Pricing copyWith({
  num? total,
  num? products,
}) =>
    Pricing(
      total: total ?? this.total,
      products: products ?? this.products,
    );