Dart入门

157 阅读1分钟

Function

匿名函数(lambda函数/闭包)

词法作用域(lexical scope)

词法闭包(lexical closures)

顶级函数(top-level function)

import

延迟加载包

deferred as

loadLibrary

操作符

类成员

构造器的使用

const

可选的new关键词创建实例(The new keyword became optional in Dart 2)

获取对象的运行时类型

runtimeType

Abstract methods

扩展方法(Extension methods)

枚举类型

·with·keyword

enum

Inheritance(继承)

Type Safe

Mixins(混合,多态)

接口和抽象类

静态变量:static

静态方法::

Generics(泛型parameterized type)

限制参数化类型

Type

运行时类型

Async(异步编程)

Future
Stream

Exceptions

Core Library

build-in types

num

int

double

bool

list

spread operator ...

collection if/collection for

Sets

Variables

dynamic

covariant keyword

Dart VM

Platforms

Dart Native:Dart VM and JIT AOT(production)

Dart Web:dartdevc(deveopment) dart2js(production)