OobCodeRequest class

Meta-Class for multiple API-Endpoints

Implementers
Annotations
  • @freezed

Constructors

OobCodeRequest.fromJson(Map<String, dynamic> json)
JSON constructor
factory
OobCodeRequest.passwordReset({required String email, @Default(OobCodeRequestType.PASSWORD_RESET) OobCodeRequestType requestType})
https://firebase.google.com/docs/reference/rest/auth#section-send-password-reset-email
const
factory
OobCodeRequest.verifyEmail({required String idToken, @Default(OobCodeRequestType.VERIFY_EMAIL) OobCodeRequestType requestType})
https://firebase.google.com/docs/reference/rest/auth#section-send-email-verification
const
factory

Properties

copyWith → $OobCodeRequestCopyWith<OobCodeRequest>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
requestType OobCodeRequestType
The type of confirmation code to send. Should always be OobCodeRequestType.VERIFY_EMAIL.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

map<TResult extends Object?>({required TResult verifyEmail(VerifyEmailRequest value), required TResult passwordReset(PasswordRestRequest value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult? verifyEmail(VerifyEmailRequest value)?, TResult? passwordReset(PasswordRestRequest value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult verifyEmail(VerifyEmailRequest value)?, TResult passwordReset(PasswordRestRequest value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult verifyEmail(String idToken, OobCodeRequestType requestType)?, TResult passwordReset(String email, OobCodeRequestType requestType)?, 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 verifyEmail(String idToken, OobCodeRequestType requestType), required TResult passwordReset(String email, OobCodeRequestType requestType)}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult? verifyEmail(String idToken, OobCodeRequestType requestType)?, TResult? passwordReset(String email, OobCodeRequestType requestType)?}) → TResult?
inherited

Operators

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