Future FutureOr SynchronousFuture FT_Grand 2020-09-04 1,158 阅读1分钟 Future 就是 普通的 Future。 FutureOr “ FutureOr ”类型实际上是“ int”和“ Future ”类型的“类型联合”。 SynchronousFuture then 同步执行的 Future Future(()=>123).then((value) => print(value));SynchronousFuture(456).then((value) => print(value)); print: 456 123