
dart
zhoushenxian
我是一个菜鸟android开发工程师,目前从事电视端开发
展开
-
dart. 控制流程语句
You can control the flow of your Dart code using any of the following:if and elsefor loopswhile and do-while loopsbreak and continueswitch and caseassert1:if...else...这个几乎每个编程语言都有if条件判断...原创 2019-06-11 19:00:31 · 187 阅读 · 0 评论 -
dart Map
上一篇讲了List 存储对象的方式,在Java中有很多种集合 比如List Map. 这是二大类,那么在dart语言中也有MapsIn general, a map is an object that associates keys and values. Both keys and values can be any type of object. Each key occurs o...原创 2019-06-11 17:16:42 · 935 阅读 · 0 评论 -
dart List
官网文档介绍:Perhaps the most common collection in nearly every programming language is the array, or ordered group of objects. In Dart, arrays are List objects, so most people just call them lists.翻译:...原创 2019-06-11 16:54:02 · 293 阅读 · 0 评论 -
dart 内置数据类型 布尔类型
To represent boolean values, Dart has a type named bool. Only two objects have type bool: the boolean literals true and false, which are both compile-time constants翻译:要表示布尔值,Dart有一个名为bool的类型。只有两个...原创 2019-06-11 15:43:18 · 1327 阅读 · 0 评论 -
dart 内置数据类型 String
先看来自官网的解释:A Dart string is a sequence of UTF-16 code units. You can use either single or double quotes to create a string从上面的文档中发现创建字符串可以使用单引号或者双引号 这点和JavaScript和groovy kotilin一样例子:var s1 = ...原创 2019-06-11 15:37:18 · 1546 阅读 · 0 评论 -
dart 内置数据类型 Number
dart支持如下几种数据类型The Dart language has special support for the following types:numbers strings booleans lists (also known asarrays) sets maps runes (for expressing Unicode characters in a stri...原创 2019-06-11 14:44:32 · 2527 阅读 · 0 评论 -
dart中的关键字
我们知道任何一门语言都会有它自己的一套关键词,这个在定义变量的时候是不能使用的,那么在dart中有哪些关键词呢?看官网文档给出的我们发现有的关键词右上角有数字是什么意思呢?我们把文档看明白就知道了Avoid using these words as identifiers. However, if necessary, the keywords marked with supersc...原创 2019-06-11 11:07:32 · 1603 阅读 · 0 评论 -
dart 变量
目前市面上关于flutter的资源还是不多的,其实很多资料都是从官网上学习的,个人认为官网是很好的学习资料,也是你个人学习能力的一个认可,我们学习Java都是有一个main函数 这是入口 那dart语言呢?https://dart.dev/samples上面是dart的官网例子 我们只要对看他就行Hello WorldEvery app has a main() fun...原创 2019-06-11 10:52:04 · 476 阅读 · 0 评论