LandingModel class Landing

The model governing the state of the LandingPage.

The state consists of two integers: current and previous. current is the index of the view currently shown on the landing page. previous is the index of the view shown before the current view. The previous view is stored to be able to animate the forms correctly by way of the FormSwitcher. The views are:

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

Constructors

LandingModel()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

build() → ({int current, int previous})
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setView(int view) → void
Switches the view of the LandingPage.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited