I have this putIfAbsent, can I have 3 keys in a putIfAbsent? For example _items.putIfAbsent((product.named, color, size)
_items.putIfAbsent((product.named),() => CartItem(
name: product.named,
price: product.priced,
quantity: count,
image: product.imaged,
cor: cor,
tamanho: tamanho,
),
);
I wanted 3 keys to be able to make a selection, if the product doesn't have the same name, size and color. Added a new product to the list (for example, with a different color than the existing product)