copyWith method

BasketWrapper copyWith({
  1. ArticleRetail? article,
  2. double? minimumUnitPerBasket,
  3. double? stockRemaining,
})

Implementation

BasketWrapper copyWith({
  ArticleRetail? article,
  double? minimumUnitPerBasket,
  double? stockRemaining,
}) {
  return BasketWrapper(
    article ?? this.article,
    minimumUnitPerBasket ?? this.minimumUnitPerBasket,
    stockRemaining ?? this.stockRemaining,
  );
}