copyWith method
--- Copy helper ---
Implementation
PledgeableFund copyWith({
String? fundName,
double? fundValue,
String? fundCode,
double? lienEligibleUnits,
double? nav,
double? availableAmount,
double? availableUnits,
String? amcCode,
String? schemeCode,
String? folioNo,
String? rtaName,
double? updatedFundAmount,
bool? enabled,
bool? active,
}) {
return PledgeableFund(
fundName: fundName ?? this.fundName,
fundValue: fundValue ?? this.fundValue,
fundCode: fundCode ?? this.fundCode,
lienEligibleUnits: lienEligibleUnits ?? this.lienEligibleUnits,
nav: nav ?? this.nav,
availableAmount: availableAmount ?? this.availableAmount,
availableUnits: availableUnits ?? this.availableUnits,
amcCode: amcCode ?? this.amcCode,
schemeCode: schemeCode ?? this.schemeCode,
folioNo: folioNo ?? this.folioNo,
rtaName: rtaName ?? this.rtaName,
updatedFundAmount: updatedFundAmount ?? this.updatedFundAmount,
enabled: enabled ?? this.enabled,
active: active ?? this.active,
);
}