FirebasePhoneAuthController class

Inheritance

Properties

autoRetrievalTimeLeft Duration
autoRetrievalTimeLeft can be used to display a reverse countdown, starting from _autoRetrievalTimeOutDuration.inSecondss till 0, and can show the the listening for OTP view, and also the time left.
no setter
codeSent bool
Whether OTP to the given phoneNumber is sent or not.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
Whether any listeners are currently registered.
no setterinherited
isListeningForOtpAutoRetrieve bool
Whether the otp retrieval timer is active or not.
no setter
isOtpExpired bool
Whether the otp has expired or not.
no setter
isSendingCode bool
Whether OTP is being sent to the given phoneNumber.
no setter
isWeb bool
Whether the current platform is web or not;
no setter
otpExpirationTimeLeft Duration
otpExpirationTimeLeft can be used to display a reverse countdown, starting from _otpExpirationDuration.inSecondss till 0, and can show the resend button, to let user request a new OTP.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
clear() → void
Clear all data
dispose() → void
Discards any resources used by the object. After this is called, the object is not in a usable state and should be discarded (calls to addListener will throw after the object is disposed).
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
sendOTP({bool shouldAwaitCodeSend = true}) Future<bool>
Send OTP to the given _phoneNumber.
signOut() Future<void>
Signs out the current user.
toString() String
A string representation of this object.
inherited
verifyOtp(String otp) Future<bool>
Verify the OTP sent to _phoneNumber and login user is OTP was correct.

Operators

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

Constants

kAutoRetrievalTimeOutDuration → const Duration
The maximum amount of time you are willing to wait for SMS auto-retrieval to be completed by the library.