copyWith method

PledgeableFund copyWith({
  1. String? fundName,
  2. double? fundValue,
  3. String? fundCode,
  4. double? lienEligibleUnits,
  5. double? nav,
  6. double? availableAmount,
  7. double? availableUnits,
  8. String? amcCode,
  9. String? schemeCode,
  10. String? folioNo,
  11. String? rtaName,
  12. double? updatedFundAmount,
  13. bool? enabled,
  14. bool? active,
})

--- 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,
  );
}