copyWith method

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

Makes a copy of this Period

Implementation

Period copyWith({
  DateTime? start,
  DateTime? end,
}) =>
    Period(
      start: start ?? this.start,
      end: end ?? this.end,
    );