copyWithStock method
Implementation
InventoryState copyWithStock(String productId, int quantity) {
return InventoryState({...stocks, productId: quantity});
}
InventoryState copyWithStock(String productId, int quantity) {
return InventoryState({...stocks, productId: quantity});
}