UpdatePasswordRequest class sealed
Update password request
- Available extensions
- 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> -
Create a copy of UpdatePasswordRequest
with the given fields replaced by the non-null parameter values.
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 -
Available on UpdatePasswordRequest, provided by the UpdatePasswordRequestPatterns extension
Aswitch
-like method, using callbacks. -
mapOrNull<
TResult extends Object?> ({TResult? withAccessToken(UpdatePasswordRequestWithAccessToken value)?, TResult? withFreshAccessToken(UpdatePasswordRequestWithFreshAccessToken value)?, TResult? withEmail(UpdatePasswordRequestWithEmail value)?, TResult? withPhoneNumber(UpdatePasswordRequestWithPhoneNumber value)?}) → TResult? -
Available on UpdatePasswordRequest, provided by the UpdatePasswordRequestPatterns extension
A variant ofmap
that fallback to returningnull
. -
maybeMap<
TResult extends Object?> ({TResult withAccessToken(UpdatePasswordRequestWithAccessToken value)?, TResult withFreshAccessToken(UpdatePasswordRequestWithFreshAccessToken value)?, TResult withEmail(UpdatePasswordRequestWithEmail value)?, TResult withPhoneNumber(UpdatePasswordRequestWithPhoneNumber value)?, required TResult orElse()}) → TResult -
Available on UpdatePasswordRequest, provided by the UpdatePasswordRequestPatterns extension
A variant ofmap
that fallback to returningorElse
. -
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 -
Available on UpdatePasswordRequest, provided by the UpdatePasswordRequestPatterns extension
A variant ofwhen
that fallback to anorElse
callback. -
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 -
Available on UpdatePasswordRequest, provided by the UpdatePasswordRequestPatterns extension
Aswitch
-like method, using callbacks. -
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? -
Available on UpdatePasswordRequest, provided by the UpdatePasswordRequestPatterns extension
A variant ofwhen
that fallback to returningnull
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited