setView method

void setView(
  1. int view
)

Switches the view of the LandingPage.

view is the index of the view to switch to:

  • 0: Register
  • 1: Login
  • 2: Reset password

Implementation

void setView(int view) {
  state = (current: view, previous: state.current);
}