I am facing a error while using "List" in dart. I am using Visual Studio Code. I don't know why is it showing red mark under this List keyword? Can anyone give me a solution to get rid of this?
Please see the screenshot for better understanding:
I am facing a error while using "List" in dart. I am using Visual Studio Code. I don't know why is it showing red mark under this List keyword? Can anyone give me a solution to get rid of this?
Please see the screenshot for better understanding:
There is a function named List
somewhere. Try to find it and just rename it to something else more specific as it conflicts with the already existing type List
from Dart.
Tip: On VSCode you can go to the definition of a type/function/var by just pressing Ctrl + click
(Cmd + click
) over it.
List
declared in the module package:shel_apps/models/listIPO.dart'
?