TonNft class final
Represents an NFT in the TON blockchain
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? extraValue, UpgradedGift? gift}) -
Represents an NFT in the TON blockchain
const
-
TonNft.fromJson(Map<
String, dynamic> json) -
Parses a TonNft from TDLib JSON.
factory
Properties
- address → String
-
Address of the NFT
final
-
attributes
→ List<
TonNftAttribute> -
Attributes of the NFT
final
- clientId → int?
-
Identifier of the TDLib client that sent this object, when known.
no setterinherited
- collectionAddress → String
-
Address of the collection to which the NFT belongs; may be empty if unknown
final
- content → Document?
-
Content of the NFT; may be null if none
final
- description → String
-
Description of the NFT
final
- extra → dynamic
-
"@extra" of the request this object answers; null for updates.
no setterinherited
- extraValue → JsonValue?
-
Additional data about the NFT; may be null if none
final
- gift → UpgradedGift?
-
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 setterinherited
- image → PhotoSize?
-
Image of the NFT; may be null if none
final
- index → String
-
Index of the NFT among all NFTs from the collection as a decimal number
final
- name → String
-
Name of the NFT
final
- ownerAddress → String
-
Address of the owner of the NFT
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sticker → Sticker?
-
Sticker of the NFT; may be null if none
final
- thumbnail → PhotoSize?
-
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? extraValue()?, UpgradedGift? gift()?}) → TonNft -
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g.
field: () => nullto 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.