pass buildcontext context in initstate flutter code example
Example: how to use buildcontext in initstate flutter
Future.delayed(Duration.zero,() {
//Do your stuff here
});
Future.delayed(Duration.zero,() {
//Do your stuff here
});