W3cubDocs

/Dart 2

tryParse method

double tryParse (String source)
override

Parse source as an double literal and return its value.

Like parse except that this function returns null for invalid inputs instead of throwing, and the source must still not be null.

Implementation

external static double tryParse(String source);

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