AuthorizationStateWaitPassword class final
The user has been authorized, but needs to enter a 2-step verification password to start using the application. Call checkAuthenticationPassword to provide the password, or requestAuthenticationPasswordRecovery to recover the password, or deleteAccount to delete the account after a week
- Inheritance
-
- Object
- TdObject
- AuthorizationState
- AuthorizationStateWaitPassword
Constructors
- AuthorizationStateWaitPassword({required String passwordHint, required bool hasRecoveryEmailAddress, required bool hasPassportData, required String recoveryEmailAddressPattern, dynamic extra, int? clientId})
-
The user has been authorized, but needs to enter a 2-step verification password to start using the application. Call checkAuthenticationPassword to provide the password, or requestAuthenticationPasswordRecovery to recover the password, or deleteAccount to delete the account after a week
const
-
AuthorizationStateWaitPassword.fromJson(Map<
String, dynamic> json) -
Parses a AuthorizationStateWaitPassword from TDLib JSON.
factory
Properties
- clientId → int?
-
Identifier of the TDLib client that sent this object.
final
- extra → dynamic
-
"@extra" of the request this object answers.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasPassportData → bool
-
True, if some Telegram Passport elements were saved
final
- hasRecoveryEmailAddress → bool
-
True, if a recovery email address has been set up
final
- passwordHint → String
-
Hint for the password; may be empty
final
- recoveryEmailAddressPattern → String
-
Pattern of the email address to which the recovery email was sent; empty until a recovery email has been sent
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{String? passwordHint, bool? hasRecoveryEmailAddress, bool? hasPassportData, String? recoveryEmailAddressPattern, dynamic extra, int? clientId}) → AuthorizationStateWaitPassword -
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g.
field: () => nullto clear it.override -
getConstructor(
) → String -
TDLib type name, e.g.
updateNewMessage.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Converts this object to TDLib JSON.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- CONSTRUCTOR → const String
- TDLib type name.