title: Is there a better way to parse an int in Dart
body: <p>This is several questions about int.parse in Dart...</p>
  
  <p>I know that in Dart we can parse a string as an int and catch exceptions using something like:</p>
  
  <pre class="lang-dart prettyprint-override"><code>try {
    n = int.parse(input.value);
    // etc.
  } on FormatException {
    // etc.
  }
  </code></pre>
  
  <p>(Which is fine.)</p>
  
  <p>In the documentation, there is the following description of int.parse:</p>
  
  <pre><code>int parse(String source, int radix, int onError(String source))
  </code></pre>
  
  <p>When I tried using int.parse with more than one argument, however, I got a complaint from the editor about me using extra arguments. Am I misunderstanding the documentation? And how does one, for example, set the radix?</p>