UpdateRequest class
Meta-Class for multiple API-Endpoints
- Implementers
- Annotations
-
- @freezed
Constructors
- UpdateRequest.confirmEmail({required String oobCode})
-
https://firebase.google.com/docs/reference/rest/auth#section-confirm-email-verification
constfactory
- UpdateRequest.email({required String idToken, required String email, @Default(false) bool returnSecureToken})
-
https://firebase.google.com/docs/reference/rest/auth#section-change-email
constfactory
-
UpdateRequest.fromJson(Map<
String, dynamic> json) -
JSON constructor
factory
- UpdateRequest.linkEmail({required String idToken, required String email, required String password, @Default(true) bool returnSecureToken})
-
https://firebase.google.com/docs/reference/rest/auth#section-link-with-email-password
constfactory
- UpdateRequest.password({required String idToken, required String password, @Default(true) bool returnSecureToken})
-
https://firebase.google.com/docs/reference/rest/auth#section-change-password
constfactory
-
UpdateRequest.profile({required String idToken, String? displayName, Uri? photoUrl, @Default(<DeleteAttribute>[]) List<
DeleteAttribute> deleteAttribute, @Default(false) bool returnSecureToken}) -
https://firebase.google.com/docs/reference/rest/auth#section-update-profile
constfactory
-
UpdateRequest.unlink({required String idToken, required List<
String> deleteProvider}) -
https://firebase.google.com/docs/reference/rest/auth#section-unlink-provider
constfactory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
map<
TResult extends Object?> ({required TResult confirmEmail(ConfirmEmailRequest value), required TResult email(EmailUpdateRequest value), required TResult password(PasswordUpdateRequest value), required TResult profile(ProfileUpdateRequest value), required TResult linkEmail(LinkEmailRequest value), required TResult unlink(UnlinkRequest value)}) → TResult -
inherited
-
mapOrNull<
TResult extends Object?> ({TResult? confirmEmail(ConfirmEmailRequest value)?, TResult? email(EmailUpdateRequest value)?, TResult? password(PasswordUpdateRequest value)?, TResult? profile(ProfileUpdateRequest value)?, TResult? linkEmail(LinkEmailRequest value)?, TResult? unlink(UnlinkRequest value)?}) → TResult? -
inherited
-
maybeMap<
TResult extends Object?> ({TResult confirmEmail(ConfirmEmailRequest value)?, TResult email(EmailUpdateRequest value)?, TResult password(PasswordUpdateRequest value)?, TResult profile(ProfileUpdateRequest value)?, TResult linkEmail(LinkEmailRequest value)?, TResult unlink(UnlinkRequest value)?, required TResult orElse()}) → TResult -
inherited
-
maybeWhen<
TResult extends Object?> ({TResult confirmEmail(String oobCode)?, TResult email(String idToken, String email, bool returnSecureToken)?, TResult password(String idToken, String password, bool returnSecureToken)?, TResult profile(String idToken, String? displayName, Uri? photoUrl, List< DeleteAttribute> deleteAttribute, bool returnSecureToken)?, TResult linkEmail(String idToken, String email, String password, bool returnSecureToken)?, TResult unlink(String idToken, List<String> deleteProvider)?, required TResult orElse()}) → TResult -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
TResult extends Object?> ({required TResult confirmEmail(String oobCode), required TResult email(String idToken, String email, bool returnSecureToken), required TResult password(String idToken, String password, bool returnSecureToken), required TResult profile(String idToken, String? displayName, Uri? photoUrl, List< DeleteAttribute> deleteAttribute, bool returnSecureToken), required TResult linkEmail(String idToken, String email, String password, bool returnSecureToken), required TResult unlink(String idToken, List<String> deleteProvider)}) → TResult -
inherited
-
whenOrNull<
TResult extends Object?> ({TResult? confirmEmail(String oobCode)?, TResult? email(String idToken, String email, bool returnSecureToken)?, TResult? password(String idToken, String password, bool returnSecureToken)?, TResult? profile(String idToken, String? displayName, Uri? photoUrl, List< DeleteAttribute> deleteAttribute, bool returnSecureToken)?, TResult? linkEmail(String idToken, String email, String password, bool returnSecureToken)?, TResult? unlink(String idToken, List<String> deleteProvider)?}) → TResult? -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited