setIsLogin static method

dynamic setIsLogin([
  1. 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();
  }
}