Run ❯
Get your
own
website
❯
Run Code
Ctrl+Alt+R
Change Orientation
Ctrl+Alt+O
Change Theme
Ctrl+Alt+D
Change Language
Go to Spaces
Ctrl+Alt+P
int parseQuantity(String text) { try { return int.parse(text); } on FormatException { print('Log: could not read "$text"'); rethrow; } } void main() { try { parseQuantity('five'); } on FormatException catch (e) { print('main() caught: ${e.message}'); } }
Log: could not read "five"
main() caught: Invalid radix-10 number