我们知道任何一门语言都会有它自己的一套关键词,这个在定义变量的时候是不能使用的,那么在dart中有哪些关键词呢?看官网文档给出的
我们发现有的关键词右上角有数字是什么意思呢?我们把文档看明白就知道了
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 2 are built-in identifiers. To simplify the task of porting JavaScript code to Dart, these keywords are valid identifiers in most places, but they can’t be used as class or type names, or as import prefixes.
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 await or yield as an identifier in any function body marked with async, async*, or sync*.
All ot