copyWith method

CashFlowPayment copyWith({
  1. DateTime? postDate,
  2. double? value,
  3. bool? isKnown,
  4. double? weighting,
  5. String? label,
  6. double? interest,
  7. bool? isInterestCapitalised,
  8. DayCountFactor? periodFactor,
})

Implementation

CashFlowPayment copyWith({
  DateTime? postDate,
  double? value,
  bool? isKnown,
  double? weighting,
  String? label,
  double? interest,
  bool? isInterestCapitalised,
  DayCountFactor? periodFactor,
}) =>
    CashFlowPayment(
      postDate: postDate ?? this.postDate,
      value: value ?? this.value,
      isKnown: isKnown ?? this.isKnown,
      weighting: weighting ?? this.weighting,
      label: label ?? this.label,
      interest: interest ?? this.interest,
      isInterestCapitalised:
          isInterestCapitalised ?? this.isInterestCapitalised,
      periodFactor: periodFactor ?? this.periodFactor,
    );