copyWith method

ZdsDateTimeRange copyWith(
  1. {DateTime? start,
  2. DateTime? end}
)

Creates a new ZdsDateTimeRange from this one by updating individual properties.

Implementation

ZdsDateTimeRange copyWith({DateTime? start, DateTime? end}) {
  return ZdsDateTimeRange(start: start ?? this.start, end: end ?? this.end);
}