copyWith method

ERC1155Entity copyWith({
  1. String? name,
  2. String? symbol,
  3. int? decimals,
  4. String? contractAddress,
  5. BigInt? tokenId,
  6. bool? allowDeletion,
  7. int? chainID,
})
override

Implementation

ERC1155Entity copyWith({
  String? name,
  String? symbol,
  int? decimals,
  String? contractAddress,
  BigInt? tokenId,
  bool? allowDeletion,
  int? chainID,
}) {
  return ERC1155Entity(
    name: name ?? this.name,
    symbol: symbol ?? this.symbol,
    contractAddress: contractAddress ?? this.contractAddress,
    tokenId: tokenId ?? this.tokenId,
    allowDeletion: allowDeletion ?? this.allowDeletion,
    chainID: chainID ?? this.chainID,
  );
}