SignInRequest class sealed

Meta-Class for multiple API-Endpoints

Annotations
  • @freezed

Constructors

SignInRequest.anonymous({@Default.new(true) bool returnSecureToken})
https://firebase.google.com/docs/reference/rest/auth#section-sign-in-anonymously
const
factory
SignInRequest.customToken({required String token, @Default.new(true) bool returnSecureToken})
https://firebase.google.com/docs/reference/rest/auth#section-verify-custom-token
const
factory
SignInRequest.fromJson(Map<String, dynamic> json)
JSON constructor
factory
SignInRequest.idp({required Uri requestUri, required String postBody, @Default.new(true) bool returnSecureToken, @Default.new(false) bool returnIdpCredential})
https://firebase.google.com/docs/reference/rest/auth#section-sign-in-with-oauth-credential
const
factory
SignInRequest.linkIdp({required String idToken, required Uri requestUri, required String postBody, @Default.new(true) bool returnSecureToken, @Default.new(false) bool returnIdpCredential})
https://firebase.google.com/docs/reference/rest/auth#section-link-with-oauth-credential
const
factory
SignInRequest.password({required String email, required String password, @Default.new(true) bool returnSecureToken})
Meta-Class for multiple API-Endpoints
const
factory

Properties

copyWith → $SignInRequestCopyWith<SignInRequest>
Create a copy of SignInRequest with the given fields replaced by the non-null parameter values.
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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes this SignInRequest to a JSON map.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited