copyWith method

ExternalPaymentScheduleBase copyWith({
  1. PaymentScheduleInterval? interval,
  2. int? intervalExecutionDay,
  3. DateTime? startDate,
  4. DateTime? endDate,
  5. DateTime? adjustedStartDate,
})

Implementation

ExternalPaymentScheduleBase copyWith(
    {enums.PaymentScheduleInterval? interval,
    int? intervalExecutionDay,
    DateTime? startDate,
    DateTime? endDate,
    DateTime? adjustedStartDate}) {
  return ExternalPaymentScheduleBase(
      interval: interval ?? this.interval,
      intervalExecutionDay: intervalExecutionDay ?? this.intervalExecutionDay,
      startDate: startDate ?? this.startDate,
      endDate: endDate ?? this.endDate,
      adjustedStartDate: adjustedStartDate ?? this.adjustedStartDate);
}