mirrored_repositories/LearningFlutter/shop_app/lib
import 'package:flutter/material.dart';
// import 'package:flutter/cupertino.dart';

class CartProvider extends ChangeNotifier{
  final List<Map<String,dynamic>> cart = [

  ];

  void addProduct(Map<String,dynamic> product){
    cart.add(product);
    notifyListeners();
  }

  void removeProduct(Map<String,dynamic> product){
    cart.remove(product);
    notifyListeners();
  }
}