UpdatePasswordRequest class
Update password request
- Implementers
- Annotations
-
- @freezed
Constructors
- UpdatePasswordRequest.withAccessToken({required AuthToken authToken, required String oldPassword, required String newPassword})
-
Update password request model using an access token and the old password
constfactory
- UpdatePasswordRequest.withEmail({required String email, required String verificationCode, required String newPassword})
-
Update password request model using an email and a verificationCode
constfactory
- UpdatePasswordRequest.withFreshAccessToken({required AuthToken freshAuthToken, required String newPassword})
-
Update password request model using a fresh access token (less than 5 minutes old)
constfactory
- UpdatePasswordRequest.withPhoneNumber({required String phoneNumber, required String verificationCode, required String newPassword})
-
Update password request model using a phoneNumber and a verificationCode
constfactory
Properties
-
copyWith
→ $UpdatePasswordRequestCopyWith<
UpdatePasswordRequest> -
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- newPassword → String
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
map<
TResult extends Object?> ({required TResult withAccessToken(UpdatePasswordRequestWithAccessToken value), required TResult withFreshAccessToken(UpdatePasswordRequestWithFreshAccessToken value), required TResult withEmail(UpdatePasswordRequestWithEmail value), required TResult withPhoneNumber(UpdatePasswordRequestWithPhoneNumber value)}) → TResult -
inherited
-
mapOrNull<
TResult extends Object?> ({TResult? withAccessToken(UpdatePasswordRequestWithAccessToken value)?, TResult? withFreshAccessToken(UpdatePasswordRequestWithFreshAccessToken value)?, TResult? withEmail(UpdatePasswordRequestWithEmail value)?, TResult? withPhoneNumber(UpdatePasswordRequestWithPhoneNumber value)?}) → TResult? -
inherited
-
maybeMap<
TResult extends Object?> ({TResult withAccessToken(UpdatePasswordRequestWithAccessToken value)?, TResult withFreshAccessToken(UpdatePasswordRequestWithFreshAccessToken value)?, TResult withEmail(UpdatePasswordRequestWithEmail value)?, TResult withPhoneNumber(UpdatePasswordRequestWithPhoneNumber value)?, required TResult orElse()}) → TResult -
inherited
-
maybeWhen<
TResult extends Object?> ({TResult withAccessToken(AuthToken authToken, String oldPassword, String newPassword)?, TResult withFreshAccessToken(AuthToken freshAuthToken, String newPassword)?, TResult withEmail(String email, String verificationCode, String newPassword)?, TResult withPhoneNumber(String phoneNumber, String verificationCode, String newPassword)?, required TResult orElse()}) → TResult -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
TResult extends Object?> ({required TResult withAccessToken(AuthToken authToken, String oldPassword, String newPassword), required TResult withFreshAccessToken(AuthToken freshAuthToken, String newPassword), required TResult withEmail(String email, String verificationCode, String newPassword), required TResult withPhoneNumber(String phoneNumber, String verificationCode, String newPassword)}) → TResult -
inherited
-
whenOrNull<
TResult extends Object?> ({TResult? withAccessToken(AuthToken authToken, String oldPassword, String newPassword)?, TResult? withFreshAccessToken(AuthToken freshAuthToken, String newPassword)?, TResult? withEmail(String email, String verificationCode, String newPassword)?, TResult? withPhoneNumber(String phoneNumber, String verificationCode, String newPassword)?}) → TResult? -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited