Answers for "perform async task when build is done flutter"

0

perform async task when build is done flutter

@override
Widget build(BuildContext context) {
  executeAfterBuild();
  return Container();
}

Future<void> executeAfterBuild() async {
  // this code will get executed after the build method
  // because of the way async functions are scheduled
}
Posted by: Guest on September-12-2021

Code answers related to "perform async task when build is done flutter"

Code answers related to "Dart"

Browse Popular Code Answers by Language