Skip to content

Glossary: Dart Basics

collection for

Also written: collection if, collection for / if

A for or if written inside a list literal to decide which items go in, such as adding 'drip' only if the customer is a member.

Where the book teaches it

Related terms

spread operatorList