copyWith method

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

Implementation

DateTimeRange copyWith({
  ValueGetter<DateTime>? start,
  ValueGetter<DateTime>? end,
}) {
  return DateTimeRange(
    start == null ? this.start : start(),
    end == null ? this.end : end(),
  );
}