setIsLogin static method
dynamic
setIsLogin([
- dynamic isLogin = true
Implementation
static setIsLogin([isLogin = true]) {
FastCache(FastActions.isLogin()).value = isLogin;
FastNotification.push(FastActions.isLogin(), isLogin);
if (isLogin) {
storeString(FastActions.isLogin(), '1');
popToRootPage();
} else {
storeString(FastActions.isLogin(), '0');
popToRootPage();
FastNotification.push(FastActions.toTabBar(), 0);
}
if (!isLogin) {
FastApp.reCoverEnvironment();
}
}