copyWith method

TonNft copyWith({
  1. String? collectionAddress,
  2. String? address,
  3. String? ownerAddress,
  4. String? index,
  5. String? name,
  6. String? description,
  7. PhotoSize? image,
  8. PhotoSize? thumbnail,
  9. Document? content,
  10. Sticker? sticker,
  11. List<TonNftAttribute>? attributes,
  12. JsonValue? extra,
  13. UpgradedGift? gift,
})

Implementation

TonNft 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(
      collectionAddress: collectionAddress ?? this.collectionAddress,
      address: address ?? this.address,
      ownerAddress: ownerAddress ?? this.ownerAddress,
      index: index ?? this.index,
      name: name ?? this.name,
      description: description ?? this.description,
      image: image ?? this.image,
      thumbnail: thumbnail ?? this.thumbnail,
      content: content ?? this.content,
      sticker: sticker ?? this.sticker,
      attributes: attributes ?? this.attributes,
      extra: extra ?? this.extra,
      gift: gift ?? this.gift,
    );