DEV Community

Discussion on: Top 10 String utility methods you should know (Dart) 🎯

Collapse
 
doblesesays profile image
Genessis Jimenez

I tried to use the contains method, but I get an error that it is not a property of the string type... Maybe it's just for the String type. i ended up using the endsWith method.

Collapse
 
creativ_bracket profile image
Jermaine

Hi Genessis, it seems you may be running this in a JS environment. Did you try out the DartPad link at the end of the article?