title: trim and remove specific characters from beginning and end of a string in dart
body: <p>I am looking for a Dart function similar to python's <code>strip</code> function. Remove specific characters only from beginning and end.</p>
  <pre><code>String str = &quot;^&amp;%.      , !@  Hello @World   , *%()@#$ &quot;
  String newStr = str.strip(&quot;#*)(@!,^&amp;%.$ &quot;);
  </code></pre>
  <p>Result:</p>
  <pre><code>&quot;Hello @World&quot;
  </code></pre>