SetTonWalletCardStickers class
Changes the list of stickers on the TON wallet card of the current user; can be used only if getOption("can_use_ton_wallet"). The whole list of stickers is replaced. The request can take up to 20 seconds to complete, so it must be called only on explicit user action. Stickers are removed automatically if the corresponding NFT leaves the wallet or the wallet is replaced. Returns the updated card Returns TonWalletCard
- Inheritance
-
- Object
- TdFunction
- SetTonWalletCardStickers
- Available extensions
- Annotations
-
- @immutable
Constructors
-
SetTonWalletCardStickers({required List<
InputTonWalletCardSticker> stickers, required String backgroundNftAddress}) -
const
Properties
- backgroundNftAddress → String
-
backgroundNftAddress Address of the NFT from the new list of stickers,
whose colors will be used for the card background; pass an empty string to
use the default background. The NFT must correspond to an upgraded gift
with can_be_ton_wallet_card_background == true
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
stickers
→ List<
InputTonWalletCardSticker> -
stickers The new list of stickers; pass an empty list to remove all
stickers. Up to 10 stickers can be added. Each NFT can be used only once
final
Methods
-
copyWith(
{List< InputTonWalletCardSticker> ? stickers, String? backgroundNftAddress}) → SetTonWalletCardStickers -
Available on SetTonWalletCardStickers, provided by the SetTonWalletCardStickersExtensions 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
Constants
- constructor → const String