Advertisement
Guest User

Untitled

a guest
Jun 27th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. List<Map<String, dynamic>> _cartItems =
  2. List.from(_shoppingCarts[_merchantId]['cartItems']);
  3. _cartItemsList = _cartItems.map((Map<String, dynamic> _item) {
  4. if (_item['item_id'] == _cartItem['item_id'] &&
  5. _item['price'] == _cartItem['price']) {
  6. _isInCart = true;
  7. _item['qty'] = _item['qty'] + _cartItem['qty'];
  8.  
  9. }
  10. return _item;
  11. }).toList();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement