copyWith method

FreeBusy copyWith({
  1. DateTime? start,
  2. DateTime? end,
  3. List<TimeRange>? busy,
})

Implementation

FreeBusy copyWith({
  DateTime? start,
  DateTime? end,
  List<TimeRange>? busy,
}) {
  return FreeBusy(
    start: start ?? this.start,
    end: end ?? this.end,
    busy: busy ?? this.busy,
  );
}