copy method
BipCoinConfig
copy({
- CoinNames? coinNames,
- int? coinIdx,
- ChainType? chainType,
- String? defPath,
- Bip32KeyNetVersions? keyNetVer,
- List<
int> ? wifNetVer, - Map<
String, dynamic> ? addrParams, - EllipticCurveTypes? type,
- AddrEncoder? addressEncoder,
- Bip32KeyIndex? purpose,
Creates a copy of the BipCoinConfig object with optional properties updated.
Implementation
BipCoinConfig copy({
CoinNames? coinNames,
int? coinIdx,
ChainType? chainType,
String? defPath,
Bip32KeyNetVersions? keyNetVer,
List<int>? wifNetVer,
Map<String, dynamic>? addrParams,
EllipticCurveTypes? type,
AddrEncoder? addressEncoder,
Bip32KeyIndex? purpose,
}) {
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,
addrParams: addrParams ?? this.addrParams,
type: type ?? this.type,
addressEncoder: addressEncoder ?? this.addressEncoder,
purpose: purpose ?? this.purpose);
}