title: How do I remove newlines from a String in Dart?
body: <p>How do I remove the newlines from a string in Dart?</p>
  
  <p>For instance, I want to convert:</p>
  
  <pre><code>"hello\nworld"
  </code></pre>
  
  <p>to</p>
  
  <pre><code>"hello world"
  </code></pre>