Error parsing custom function

Custom Code

I am writing a custom function that takes in a list of Document in this instance TasksRecord and check through some conditions, and finally returns a modified list of the document.
Somehow flutterflow just fails to parse the code without any error. I'm kind of stuck as this is the only way I could do what I wanted to do.

What have you tried so far?

Basically it seems the issues exists with both line 35 and 38 and I have tried to debug with my logic as FF isn't showing any errors.

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