TonWalletState class final
Describes state of the wallet of the current user in the TON blockchain
Constructors
- TonWalletState({required String address, required String publicKey, required int gramAmount, required bool isBeingCreated, required bool isBackupEnabled, required bool canEnableBackup, required bool canExportPhrase})
-
Describes state of the wallet of the current user in the TON blockchain
const
-
TonWalletState.fromJson(Map<
String, dynamic> json) -
Parses a TonWalletState from TDLib JSON.
factory
Properties
- address → String
-
Address of the wallet; may be empty if none
final
- canEnableBackup → bool
-
True, if the user can enable backup for the wallet key
final
- canExportPhrase → bool
-
True, if the wallet key can be exported using getTonWalletSecretPhrase
final
- clientId → int?
-
Identifier of the TDLib client that sent this object, when known.
no setterinherited
- extra → dynamic
-
"@extra" of the request this object answers; null for updates.
no setterinherited
- gramAmount → int
-
The total amount of owned TON Grams, in the smallest units of the cryptocurrency
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isBackupEnabled → bool
-
True, if backup for the wallet key is enabled
final
- isBeingCreated → bool
-
True, if the wallet is being created
final
- publicKey → String
-
Public key of the wallet; may be empty if none
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{String? address, String? publicKey, int? gramAmount, bool? isBeingCreated, bool? isBackupEnabled, bool? canEnableBackup, bool? canExportPhrase}) → TonWalletState -
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.