W3cubDocs

/Dart 2

tryParse method

double tryParse (String source)

Parse source as an double literal and return its value.

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

Implementation

external static double tryParse(String source);

© 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/double/tryParse.html