beforeCallback method
dynamic
beforeCallback()
Implementation
beforeCallback() {
return FutureBuilder(
future: firstTimeBeforeCall,
builder: (BuildContext context, AsyncSnapshot<RoutePageInfo> snapshot) {
if (snapshot.connectionState == ConnectionState.done) {
replaceCurrentPageInfo = snapshot.data;
_isCallBefore = false;
return build(context);
} else {
return defaultLoadingPage;
}
},
);
}