Skip to content

Glossary: Dart Basics

conditional expression

Also written: ternary operator, ? :

The form `condition ? a : b`, which picks one of two values, like 'bag' or 'bags' depending on the quantity.

Where the book teaches it

Related terms

if / else