LoginViewModel class
LoginViewModel class helps to interact with model to serve data.
Reacts to user's input in Login View.
Methods include:
login
Inheritance
: - Object
- ChangeNotifier
- BaseModel
- LoginViewModel
Constructors
:
Properties
[email] [↔ TextEditingController] : TextEditingController for handling email input field. ::: features getter/setter pair :::
[emailFocus] [↔ FocusNode] : FocusNode to manage focus for the email input field. ::: features getter/setter pair :::
[formKey] [→ GlobalKey[<[FormState]>]] : GlobalKey to identify and manage the state of a form widget. ::: features final :::
[greeting] [↔ List[<[Map[<[String], dynamic>]]>]] : List of maps to store greetings.. ::: features getter/setter pair :::
[hashCode] [→ int] : The hash code for this object. ::: features no setterinherited :::
[hasListeners] [→ bool] : Whether any listeners are currently registered. ::: features no setterinherited :::
[hidePassword] [↔ bool] : Toggles password visibility (true for hidden, false for visible). ::: features getter/setter pair :::
: ::: features no setterinherited :::
[password] [↔ TextEditingController] : TextEditingController for handling password input field. ::: features getter/setter pair :::
[passwordFocus] [↔ FocusNode] : FocusNode to manage focus for the password input field. ::: features getter/setter pair :::
[prevUserEmail] [↔ String?] : This field store previous user Email. ::: features getter/setter pair :::
[prevUserPassword] [↔ String?] : This field store previous user Password. ::: features getter/setter pair :::
[runtimeType] [→ Type] : A representation of the runtime type of the object. ::: features no setterinherited :::
[secureStorage] [↔ FlutterSecureStorage] : Secure local storage instance. ::: features getter/setter pair :::
: ::: features no setterinherited :::
[validate] [↔ AutovalidateMode] : Determines when to perform automatic validation of form fields. ::: features getter/setter pair :::
Methods
[addListener][([[VoidCallback] listener]) → void ] : Register a closure to be called when the object changes. ::: features inherited :::
dispose [→ void ] : Discards any resources used by the object. After this is called, the object is not in a usable state and should be discarded (calls to addListener will throw after the object is disposed). ::: features inherited :::
[fetchPrevUser][ [→ Future<[void>]] ] : Fetch the previous user credentials.
initialize [→ void ] : Initializes the greeting message.
[login][ [→ Future<[void>]] ] : Performs the login operation.
[noSuchMethod][([[Invocation] invocation]) → dynamic ] : Invoked when a nonexistent method or property is accessed. ::: features inherited :::
notifyListeners [→ void ] : Call all the registered listeners. ::: features inherited :::
[removeListener][([[VoidCallback] listener]) → void ] : Remove a previously registered closure from the list of closures that are notified when the object changes. ::: features inherited :::
[setState][([[ViewState] viewState]) → void ]
: ::: features inherited :::
[storingCredentialsInSecureStorage][ [→ Future<[void>]] ] : Storing credentials in secure storage.
[toString][ [→ String] ] : A string representation of this object. ::: features inherited :::
Operators
[operator ==][([[Object] other]) [→ bool] ] : The equality operator. ::: features inherited :::
- talawa
- login_view_model
- LoginViewModel class