Flutter for Beginners
上QQ阅读APP看书,第一时间看更新

Literals

You can use the [] and {} syntaxes to initialize variables such as lists and maps, respectively. These are some examples of literals provided by the Dart language for creating objects of the provided built-in types:

A literal is a notation to represent a fixed value in programming languages. You have likely already used some of these before.