I have a function that should be run before the building of the Widget
@override
Widget build(BuildContext context) async {
await fetchScans();
return CompositedTransformTarget(...);
}
How can I make the build function run async so it somehow "pauses" until the fetchScans
finishes running?
Any replies or tips are much appreciated thanks!