copyWith method

PeriodDateRange copyWith({
  1. DateTime? startDate,
  2. DateTime? endDate,
  3. PeriodDateType? type,
})

Copy with new values

Implementation

PeriodDateRange copyWith({
  DateTime? startDate,
  DateTime? endDate,
  PeriodDateType? type,
}) {
  return PeriodDateRange(
    startDate: startDate ?? this.startDate,
    endDate: endDate ?? this.endDate,
    type: type ?? this.type,
  );
}