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