SetPassword class

Changes the 2-step verification password for the current user. If a new recovery email address is specified, then the change will not be applied until the new recovery email address is confirmed.

Returns PasswordState.

Inheritance
Available Extensions

Constructors

SetPassword({required String old_password, required String new_password, required String new_hint, required bool set_recovery_email_address, required String new_recovery_email_address, int? extra, int? clientId})
Changes the 2-step verification password for the current user. If a new recovery email address is specified, then the change will not be applied until the new recovery email address is confirmed

Properties

clientId ↔ int?
TDLib client instance identifier, for which the response was received.
read / writeoverride
extra ↔ int?
Request identifier. Must be non-zero.
read / writeoverride
hashCode → int
The hash code for this object.
read-onlyinherited
new_hint ↔ String
New password hint; may be empty.
read / write
new_password ↔ String
New 2-step verification password of the user; may be empty to remove the password.
read / write
new_recovery_email_address ↔ String
New recovery email address; may be empty.
read / write
old_password ↔ String
Previous 2-step verification password of the user.
read / write
runtimeType → Type
A representation of the runtime type of the object.
read-onlyinherited
set_recovery_email_address ↔ bool
Pass true to change also the recovery email address.
read / write

Methods

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

Operators

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

Static Methods

fromMap(Map<String, dynamic>? _map) → SetPassword?
Construct from Map.
override

Constants

CONSTRUCTOR → const String
@type
"setPassword"