W3cubDocs

/Dart 2

tryParse method

int tryParse (String source, { int radix })
override

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

Like parse except that this function returns null where a similar call to parse would throw a FormatException, and the source must still not be null.

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.dart.dev/stable/2.5.0/dart-core/int/tryParse.html