Skip to content

Glossary: Dart Basics

int.parse / tryParse

Also written: int.parse, int.tryParse, double.parse

Functions that turn text into a number. parse throws a FormatException on bad text, while tryParse gives null.

Where the book teaches it

Related terms

FormatExceptionnullable type