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.