copyWith method

ERC20Entity copyWith({
  1. String? name,
  2. String? symbol,
  3. int? decimals,
  4. String? contractAddress,
  5. bool? allowDeletion,
  6. int? chainID,
})

Implementation

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