copyWith method

Week copyWith({
  1. Date? startOfWeek,
})

////////////////////////////////// SETTERS Create a new copy with updated values

Implementation

/// Create a new copy with updated values
Week copyWith({Date? startOfWeek}) {
  return Week(startOfWeek: startOfWeek ?? this.startOfWeek);
}