W3cubDocs

/Dart 2

tryParse method

int tryParse (String source, { int radix })

Parse source as a, possibly signed, integer literal and return its value.

Like parse except that this function returns null for invalid inputs instead of throwing.

Implementation

external static int tryParse(String source, {int radix});

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/2.0.0/dart-core/int/tryParse.html