flutter delay load data from api code example
Example: delay fetching data flutter
Future.delayed(Duration.zero).then((_) {
Provider.of<Products>(context).fetchAndSetProducts();
});
Future.delayed(Duration.zero).then((_) {
Provider.of<Products>(context).fetchAndSetProducts();
});