数字类型:
num int1 = 3; num为int,double父类
字符串类型
String str = "string";
bool类型
bool是强类型,只有定义为true才为true
bool flag = true;
List
List<String> strList = ["apple","huawei","toyota","google"];
Map
Map map = {"name" : '张三',"age": 12,"address" : "北京市朝阳区"};
Flutter 数字、字符串、List、Map
最新推荐文章于 2023-04-03 15:05:00 发布