Custom return type for function not recognised

Custom Code

I have created a data schema “CulturalExpDataType” and then defined a function “List<CulturalExpDataTypeStruct> extractCulturalExperiences(String cult)”. The function is supposed to get s string parameter and extract few values based on certain keywords and return it as a list. However am getting an error that says it ain’t able to recognise the custom return type.

The error is as follows:

“The name 'CulturalExpDataTypeStruct' isn't a type, so it can't be used as a type argument.

Try correcting the name to an existing type, or defining a type named 'CulturalExpDataTypeStruct'.dart”

Please help. Screenshots attached.

What have you tried so far?

I haven’t found an alternative for this as well.

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