The following table lists the words that the Dart language treats specially.
- Avoid using these words as identifiers. However, if necessary, the keywords marked with superscripts can be identifiers:
- Words with the superscript 1 are contextual keywords, which have meaning only in specific places. They’re valid identifiers everywhere.
Words with the superscript 3 are newer, limited reserved words related to the asynchrony support that was added after Dart’s 1.0 release. You can’t use
yieldas an identifier in any function body marked with
All other words in the table are reserved words, which can’t be identifiers.