copyWith method

TonWalletCardSticker copyWith({
  1. AreaPosition? position,
  2. TonNft? nft,
})

Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.

Implementation

TonWalletCardSticker copyWith({AreaPosition? position, TonNft? nft}) =>
    TonWalletCardSticker(
      position: position ?? this.position,
      nft: nft ?? this.nft,
    );