copyWith method

SeriesPayment copyWith({
  1. int? numberOf,
  2. Frequency? frequency,
  3. String? label,
  4. double? value,
  5. DateTime? postDateFrom,
  6. Mode? mode,
  7. double? weighting,
  8. bool? isInterestCapitalised,
})

Implementation

SeriesPayment copyWith({
  int? numberOf,
  Frequency? frequency,
  String? label,
  double? value,
  DateTime? postDateFrom,
  Mode? mode,
  double? weighting,
  bool? isInterestCapitalised,
}) =>
    SeriesPayment(
      numberOf: numberOf ?? this.numberOf,
      frequency: frequency ?? this.frequency,
      label: label ?? this.label,
      value: value ?? this.value,
      postDateFrom: postDateFrom ?? this.postDateFrom,
      mode: mode ?? this.mode,
      weighting: weighting ?? this.weighting,
      isInterestCapitalised:
          isInterestCapitalised ?? this.isInterestCapitalised,
    );