摘要:
目前Typedefs只能赋值函数,未来可能有其他类型 //定义一个别名 typedef Fu = int Function(int a, int b); class A { //生命一个别名类型 Fu f; A(this.f); } main(List<String> args) { //传一个函数 阅读全文
摘要:
导入库 导入内置库 import 'dart:html'; 拆分成多个库 a.dart part of "./sum.dart"; class A { static int a = 10; } b.dart part of "./sum.dart"; class B { static int b = 阅读全文