onReady method
Called 1 frame after onInit(). It is the perfect place to enter navigation events, like snackbar, dialogs, or a new route, or async request.
Implementation
@override
void onReady() {
if (getAutoRefresh()) {
setBusy();
}
void doOnReady() {
if (getAutoRefresh()) {
realRefreshData();
}
}
if (getDelayDuration().inSeconds == 0) {
doOnReady.call();
} else {
Future.delayed(getDelayDuration(), () {
doOnReady.call();
});
}
isInit = true;
}