LoginResponse<T> class
A LoginResponse object is returned from a login attempt. If the login was successful, loginSuccessful will be true and userObject will contain the user object. If the login was not successful, loginSuccessful will be false and loginError will contain an Error object with the error title and message.
Constructors
- LoginResponse({required bool loginSuccessful, required T? userObject, Error? loginError})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- loginError → Error?
-
final
- loginSuccessful → bool
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- userObject → T?
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited