title: Checking if string is numeric in dart
body: <p>I need to find out if a string is numeric in dart. It needs to return true on any valid number type in dart. So far, my solution is</p>
  
  <pre class="lang-dart prettyprint-override"><code>bool isNumeric(String str) {
    try{
      var value = double.parse(str);
    } on FormatException {
      return false;
    } finally {
      return true;
    }
  }
  </code></pre>
  
  <p>Is there a native way to do this? If not, is there a better way to do it?</p>