TonWalletCard class abstract

The TON wallet card shown on a user's profile.

Available extensions
Annotations
  • @freezed

Constructors

TonWalletCard({@JsonKey.new(name: 'address') required String address, @JsonKey.new(name: 'amount') required String amount, @JsonKey.new(name: 'stickers') required List<TonWalletCardSticker> stickers, @JsonKey.new(name: 'background_nft_address') String? backgroundNftAddress})
Creates a TonWalletCard.
const
factory
TonWalletCard.fromJson(Map<String, dynamic> json)
Creates a TonWalletCard from JSON.
factory

Properties

address → String
Wallet address.
no setterinherited
amount → String
Wallet balance in the smallest currency units, as a decimal string.
no setterinherited
backgroundNftAddress → String?
Address of the sticker NFT whose colors are used for the background.
no setterinherited
copyWith → $TonWalletCardCopyWith<TonWalletCard>
Create a copy of TonWalletCard with the given fields replaced by the non-null parameter values.
no setterinherited
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 displayed on the card.
no setterinherited

Methods

map<TResult extends Object?>(TResult $default(_TonWalletCard value)) → TResult

Available on TonWalletCard, provided by the TonWalletCardPatterns extension

A switch-like method, using callbacks.
mapOrNull<TResult extends Object?>(TResult? $default(_TonWalletCard value)?) → TResult?

Available on TonWalletCard, provided by the TonWalletCardPatterns extension

A variant of map that fallback to returning null.
maybeMap<TResult extends Object?>(TResult $default(_TonWalletCard value)?, {required TResult orElse()}) → TResult

Available on TonWalletCard, provided by the TonWalletCardPatterns extension

A variant of map that fallback to returning orElse.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Serializes this TonWalletCard to a JSON map.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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