Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

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
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #perform #async #task #build #flutter
ADD COMMENT
Topic
Name
9+3 =