AuthError class
This class represents an authentication error in the Duolingo API authentication API.
It provides isInvalidUser and isInvalidPassword methods to easily check the cause of authentication errors.
Constructors
- AuthError.from({required String code, required String reason})
- Returns the new instance of AuthError based on arguments.
Properties
- code → String
-
The error code
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- isInvalidPassword → bool
-
Returns true] if the password is invalid, otherwise false.
no setter
- isInvalidUser → bool
-
Returns true if the user does not exist, otherwise false.
no setter
- reason → String
-
The error reason
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override