TonWalletState class

Describes state of the wallet of the current user in the TON blockchain

Inheritance
Available extensions
Annotations
  • @immutable

Constructors

TonWalletState({required String address, required String publicKey, required int gramAmount, required bool isBeingCreated, required bool isBackupEnabled, required bool canEnableBackup, required bool canExportPhrase})
const

Properties

address → String
address Address of the wallet; may be empty if none
final
canEnableBackup → bool
canEnableBackup True, if the user can enable backup for the wallet key
final
canExportPhrase → bool
canExportPhrase True, if the wallet key can be exported using getTonWalletSecretPhrase
final
gramAmount → int
gramAmount The total amount of owned TON Grams, in the smallest units of the cryptocurrency
final
hashCode → int
The hash code for this object.
no setteroverride
isBackupEnabled → bool
isBackupEnabled True, if backup for the wallet key is enabled
final
isBeingCreated → bool
isBeingCreated True, if the wallet is being created
final
publicKey → String
publicKey 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

Available on TonWalletState, provided by the TonWalletStateExtensions extension

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

Operators

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

Static Methods

fromJson(Map<String, dynamic>? json) → TonWalletState?

Constants

constructor → const String