PasswordState class final
Represents the current state of 2-step verification
Constructors
- PasswordState({required bool hasPassword, required String passwordHint, required bool hasRecoveryEmailAddress, required bool hasPassportData, EmailAddressAuthenticationCodeInfo? recoveryEmailAddressCodeInfo, required String loginEmailAddressPattern, required int pendingResetDate, dynamic extra, int? clientId})
-
Represents the current state of 2-step verification
const
-
PasswordState.fromJson(Map<
String, dynamic> json) -
Parses a PasswordState 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
- hasPassword → bool
-
True, if a 2-step verification password is set
final
- hasRecoveryEmailAddress → bool
-
True, if a recovery email is set
final
- loginEmailAddressPattern → String
-
Pattern of the email address set up for logging in
final
- passwordHint → String
-
Hint for the password; may be empty
final
- pendingResetDate → int
-
If not 0, point in time (Unix timestamp) after which the 2-step verification password can be reset immediately using resetPassword
final
- recoveryEmailAddressCodeInfo → EmailAddressAuthenticationCodeInfo?
-
Information about the recovery email address to which the confirmation email was sent; may be null
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{bool? hasPassword, String? passwordHint, bool? hasRecoveryEmailAddress, bool? hasPassportData, EmailAddressAuthenticationCodeInfo? recoveryEmailAddressCodeInfo()?, String? loginEmailAddressPattern, int? pendingResetDate, dynamic extra, int? clientId}) → PasswordState -
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g.
field: () => nullto clear it. -
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.