TonWalletCard class final

Describes a TON wallet card, which is shown on the profile page of a user to everyone

Inheritance

Constructors

TonWalletCard({required String address, required int gramAmount, required List<TonWalletCardSticker> stickers, required String backgroundNftAddress, dynamic extra, int? clientId})
Describes a TON wallet card, which is shown on the profile page of a user to everyone
const
TonWalletCard.fromJson(Map<String, dynamic> json)
Parses a TonWalletCard from TDLib JSON.
factory

Properties

address → String
Address of the wallet
final
backgroundNftAddress → String
Address of the NFT of one of the stickers, whose colors must be used for the card background; may be empty if the default background must be used
final
clientId → int?
Identifier of the TDLib client that sent this object.
final
extra → dynamic
"@extra" of the request this object answers.
final
gramAmount → int
Balance of the wallet, in the smallest units of the cryptocurrency; may be slightly outdated
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stickers → List<TonWalletCardSticker>
Stickers placed on the card
final

Methods

copyWith({String? address, int? gramAmount, List<TonWalletCardSticker>? stickers, String? backgroundNftAddress, dynamic extra, int? clientId}) → TonWalletCard
Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to 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.