I am looking for a Dart function similar to python's strip function. Remove specific characters only from beginning and end.
String str = "^&%. , !@ Hello @World , *%()@#$ "
String newStr = str.strip("#*)(@!,^&%.$ ");
Result:
"Hello @World"