getCurrentAuthenticationPage method

Widget getCurrentAuthenticationPage()

Implementation

Widget getCurrentAuthenticationPage() {
  switch (currentPageIndex.value) {
    case 0:
      return authenticationPages[AuthPage.login]!;
    case 1:
      return authenticationPages[AuthPage.signUp]!;
    case 2:
      return authenticationPages[AuthPage
          .forgotPassword]!;
    case 3:
      return authenticationPages[AuthPage
          .termsAndPolicy]!;
    default:
      return authenticationPages[AuthPage.login]!;
  }
}