LoginResult class

Result of a log in attempt, more subtle than a bool.

Constructors

LoginResult(LoginResultType type, {User? user, String? text})
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
text → String?
final
type → LoginResultType
final
user → User?
final

Methods

getErrorMessage(AppLocalizations appLocalizations) → String
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

Static Methods

getLoginResult(User user, UserPreferences userPreferences) → Future<LoginResult>
Checks credentials. Returns null if OK, or an error message.
isNoNetworkException(String text) → bool