TonNft class

Represents an NFT in the TON blockchain

Inheritance
Available extensions
Annotations
  • @immutable

Constructors

TonNft({required String collectionAddress, required String address, required String ownerAddress, required String index, required String name, required String description, PhotoSize? image, PhotoSize? thumbnail, Document? content, Sticker? sticker, required List<TonNftAttribute> attributes, JsonValue? extra, UpgradedGift? gift})
const

Properties

address → String
address Address of the NFT
final
attributes → List<TonNftAttribute>
attributes Attributes of the NFT
final
collectionAddress → String
collectionAddress Address of the collection to which the NFT belongs; may be empty if unknown
final
content → Document?
content Content of the NFT; may be null if none
final
description → String
param_description Description of the NFT
final
extra → JsonValue?
extra Additional data about the NFT; may be null if none
final
gift → UpgradedGift?
gift The upgraded gift corresponding to the NFT; may be null if none. Information about the owner of the gift isn't available. Original details of the gift are available only to the sender and the receiver of the original gift
final
hashCode → int
The hash code for this object.
no setteroverride
image → PhotoSize?
image Image of the NFT; may be null if none
final
index → String
index Index of the NFT among all NFTs from the collection as a decimal number
final
name → String
name Name of the NFT
final
ownerAddress → String
ownerAddress Address of the owner of the NFT
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sticker → Sticker?
sticker Sticker of the NFT; may be null if none
final
thumbnail → PhotoSize?
thumbnail Thumbnail of the NFT; may be null if none
final

Methods

copyWith({String? collectionAddress, String? address, String? ownerAddress, String? index, String? name, String? description, PhotoSize? image, PhotoSize? thumbnail, Document? content, Sticker? sticker, List<TonNftAttribute>? attributes, JsonValue? extra, UpgradedGift? gift}) → TonNft

Available on TonNft, provided by the TonNftExtensions 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) → TonNft?

Constants

constructor → const String