copyWith method

ItemCartWeebi<ArticleRawAbstract> copyWith({
  1. ArticleCreator<A>? articleCreator,
  2. double? quantity,
  3. List<ProxyArticleWorth>? proxiesWorth,
  4. double? inventoryAbsoluteQt,
})

Implementation

ItemCartWeebi copyWith(
    {ArticleCreator<A>? articleCreator,
    double? quantity,
    List<ProxyArticleWorth>? proxiesWorth,
    double? inventoryAbsoluteQt}) {
  return ItemCartWeebi<A>(
    articleCreator ?? this.articleCreator,
    quantity ?? this.quantity,
    proxiesWorth: proxiesWorth ?? this.proxiesWorth,
    inventoryAbsoluteQt: inventoryAbsoluteQt ?? this.inventoryAbsoluteQt,
  );
}