function to loop through a list of firebase documents

Custom Code

I need to create a function to which I pass a list of documents ('transactions') as a parameter and calculates the accumulated 'balance' (getting previous balance and adding actual 'inflow' and 'outflow') and saves it in each document field 'balance'

The function must return the same updated list

What have you tried so far?

so far I've tried several things, but I'm having trouble writing in the document because flutterflow says I don't have the setter defined

Did you check FlutterFlow's Documentation for this topic?
Yes
1
4 replies