updateCart method
This function allows you to update your cart.
Implementation
Future<void> updateCart(Map cart) {
return _methodChannel.invokeMethod(
'updateCart',
<String, dynamic>{
'items': cart['items'],
'totalPrice': cart['totalPrice'],
'oldTotalPrice': cart['oldTotalPrice'],
'currency': cart['currency'],
},
);
}