1.async Future 与多线程理解
2.为什么await一定要在async方法中使用
首先async方法是异步执行的,会以future的形式加入到执行队列,await则表示要等待async方法执行完成后才能继续执行后边的语句,如果不是在async方法中使用await,会造成线程的阻塞
3.在Dart2中有轻微的改动。async函数执行时,不是立即挂起,而是要执行到函数内部的第一个await
4.Completer–A way to produce Future objects and to complete them later with a value or error.
5.Dart 类构造函数
6.Mixin
Flutter Dart mixins 探究
A Brief History of Mixins in Dart
Dart: What are mixins?
Dart学习资料
最新推荐文章于 2024-01-31 01:26:59 发布