copy method

BipCoinConfig copy({
  1. CoinNames? coinNames,
  2. int? coinIdx,
  3. bool? isTestnet,
  4. String? defPath,
  5. Bip32KeyNetVersions? keyNetVer,
  6. List<int>? wifNetVer,
  7. Map<String, dynamic>? addrParams,
  8. EllipticCurveTypes? type,
  9. AddrEncoder? addressEncoder,
})

Creates a copy of the BipCoinConfig object with optional properties updated.

Implementation

BipCoinConfig copy({
  CoinNames? coinNames,
  int? coinIdx,
  bool? isTestnet,
  String? defPath,
  Bip32KeyNetVersions? keyNetVer,
  List<int>? wifNetVer,
  Map<String, dynamic>? addrParams,
  EllipticCurveTypes? type,
  AddrEncoder? addressEncoder,
}) {
  return BipCoinConfig(
      coinNames: coinNames ?? this.coinNames,
      coinIdx: coinIdx ?? this.coinIdx,
      isTestnet: isTestnet ?? this.isTestnet,
      defPath: defPath ?? this.defPath,
      keyNetVer: keyNetVer ?? this.keyNetVer,
      wifNetVer: wifNetVer ?? this.wifNetVer,
      addrParams: addrParams ?? this.addrParams,
      type: type ?? this.type,
      addressEncoder: addressEncoder ?? this.addressEncoder);
}