copyWith method

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

Implementation

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