SignInRequest class
Meta-Class for multiple API-Endpoints
- Implementers
- Annotations
-
- @freezed
Constructors
- SignInRequest.anonymous({@Default(true) bool returnSecureToken})
-
https://firebase.google.com/docs/reference/rest/auth#section-sign-in-anonymously
constfactory
- SignInRequest.customToken({required String token, @Default(true) bool returnSecureToken})
-
https://firebase.google.com/docs/reference/rest/auth#section-verify-custom-token
constfactory
-
SignInRequest.fromJson(Map<
String, dynamic> json) -
JSON constructor
factory
- SignInRequest.idp({required Uri requestUri, required String postBody, @Default(true) bool returnSecureToken, @Default(false) bool returnIdpCredential})
-
https://firebase.google.com/docs/reference/rest/auth#section-sign-in-with-oauth-credential
constfactory
- SignInRequest.linkIdp({required String idToken, required Uri requestUri, required String postBody, @Default(true) bool returnSecureToken, @Default(false) bool returnIdpCredential})
-
https://firebase.google.com/docs/reference/rest/auth#section-link-with-oauth-credential
constfactory
- SignInRequest.password({required String email, required String password, @Default(true) bool returnSecureToken})
-
Meta-Class for multiple API-Endpoints
constfactory
Properties
-
copyWith
→ $SignInRequestCopyWith<
SignInRequest> -
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- returnSecureToken → bool
-
Whether or not to return an ID and refresh token. Should always be true.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
map<
TResult extends Object?> ({required TResult anonymous(AnonymousSignInRequest value), required TResult idp(IdpSignInRequest value), required TResult password(PasswordSignInRequest value), required TResult customToken(CustomTokenSignInRequest value), required TResult linkIdp(LinkIdpRequest value)}) → TResult -
inherited
-
mapOrNull<
TResult extends Object?> ({TResult? anonymous(AnonymousSignInRequest value)?, TResult? idp(IdpSignInRequest value)?, TResult? password(PasswordSignInRequest value)?, TResult? customToken(CustomTokenSignInRequest value)?, TResult? linkIdp(LinkIdpRequest value)?}) → TResult? -
inherited
-
maybeMap<
TResult extends Object?> ({TResult anonymous(AnonymousSignInRequest value)?, TResult idp(IdpSignInRequest value)?, TResult password(PasswordSignInRequest value)?, TResult customToken(CustomTokenSignInRequest value)?, TResult linkIdp(LinkIdpRequest value)?, required TResult orElse()}) → TResult -
inherited
-
maybeWhen<
TResult extends Object?> ({TResult anonymous(bool returnSecureToken)?, TResult idp(Uri requestUri, String postBody, bool returnSecureToken, bool returnIdpCredential)?, TResult password(String email, String password, bool returnSecureToken)?, TResult customToken(String token, bool returnSecureToken)?, TResult linkIdp(String idToken, Uri requestUri, String postBody, bool returnSecureToken, bool returnIdpCredential)?, 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 anonymous(bool returnSecureToken), required TResult idp(Uri requestUri, String postBody, bool returnSecureToken, bool returnIdpCredential), required TResult password(String email, String password, bool returnSecureToken), required TResult customToken(String token, bool returnSecureToken), required TResult linkIdp(String idToken, Uri requestUri, String postBody, bool returnSecureToken, bool returnIdpCredential)}) → TResult -
inherited
-
whenOrNull<
TResult extends Object?> ({TResult? anonymous(bool returnSecureToken)?, TResult? idp(Uri requestUri, String postBody, bool returnSecureToken, bool returnIdpCredential)?, TResult? password(String email, String password, bool returnSecureToken)?, TResult? customToken(String token, bool returnSecureToken)?, TResult? linkIdp(String idToken, Uri requestUri, String postBody, bool returnSecureToken, bool returnIdpCredential)?}) → TResult? -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited