lass="language-dart"><code class="language-dart">'\tDart is fun\n'.trim(); // 'Dart is fun'
</code></pre>
<p>Otherwise, the original string itself is returned:</p>
<pre class="language-dart"><code class="language-dart">var str1 = 'Dart';
var str2 = str1.trim();
identical(str1, str2);    // true
</code></pre>
<p>Whitespace is defined by the Unicode White_Space property (as defined in
version 6.2 or later) and the BOM character, 0xFEFF.</p>
<p>Here is the list of trimmed characters according to Unicode versio