📌  相关文章
📜  构建完成后执行异步任务 - Dart 代码示例

📅  最后修改于: 2022-03-11 14:48:03.038000             🧑  作者: Mango

代码示例1
@override
Widget build(BuildContext context) {
  executeAfterBuild();
  return Container();
}

Future executeAfterBuild() async {
  // this code will get executed after the build method
  // because of the way async functions are scheduled
}