copy method

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

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

Implementation

@override
BipCoinConfig copy({
  CoinNames? coinNames,
  int? coinIdx,
  ChainType? chainType,
  String? defPath,
  Bip32KeyNetVersions? keyNetVer,
  List<int>? wifNetVer,
  EllipticCurveTypes? type,
  ADDRENCODER<BipCoinConfig>? addressEncoder,
  Bip32KeyIndex? purpose,
  DefaultHdKeyDerivator? defaultHdKeyDerivator,
}) {
  return BipCoinConfig(
    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,
    defaultHdKeyDerivator:
        defaultHdKeyDerivator ?? this.defaultHdKeyDerivator,
    purpose: purpose ?? this.purpose,
  );
}