copy method

  1. @override
BipBitcoinCashConf copy({
  1. CoinNames? coinNames,
  2. int? coinIdx,
  3. ChainType? chainType,
  4. String? defPath,
  5. Bip32KeyNetVersions? keyNetVer,
  6. Bip32KeyNetVersions? altKeyNetVer,
  7. List<int>? wifNetVer,
  8. EllipticCurveTypes? type,
  9. ADDRENCODER<BipBitcoinCashConf>? addressEncoder,
  10. bool? useLagacyAdder,
  11. Bip32KeyIndex? purpose,
})
override

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

Implementation

@override
BipBitcoinCashConf copy({
  CoinNames? coinNames,
  int? coinIdx,
  ChainType? chainType,
  String? defPath,
  Bip32KeyNetVersions? keyNetVer,
  Bip32KeyNetVersions? altKeyNetVer,
  List<int>? wifNetVer,
  EllipticCurveTypes? type,
  ADDRENCODER<BipBitcoinCashConf>? addressEncoder,
  bool? useLagacyAdder,
  Bip32KeyIndex? purpose,
}) {
  return BipBitcoinCashConf(
    coinNames: coinNames ?? this.coinNames,
    coinIdx: coinIdx ?? this.coinIdx,
    chainType: chainType ?? this.chainType,
    defPath: defPath ?? this.defPath,
    keyNetVer: keyNetVer ?? this.keyNetVer,
    wifNetVer: wifNetVer ?? this.wifNetVer,
    type: type ?? this.type,
    addressEncoder: addressEncoder ?? this.addressEncoder,
    useLagacyAdder: useLagacyAdder ?? this.useLagacyAdder,
    purpose: purpose ?? this.purpose,
  );
}