How to create shopping cart structure

Database & APIs

How to create a shopping cart app state variable, that contains a list of custom data types made of a document reference and an amount quantity for each.

What have you tried so far?

I want to create a shopping cart variable in app state that is made of a list of custom data types, that contain a document reference (which leads to a document that contains data regarding the product) and an int named "amount", but I experience issues when trying to update the amount of a given product the shopping cart list. Which way do you recommend to do this correctly, so I can change the amount of a given product when I tap a plus button. :)

Did you check FlutterFlow's Documentation for this topic?
No
1