copyWith method

CourseSettings copyWith({
  1. CourseSkillLevel? skillLevel,
  2. bool? isSkillLevelEnabled,
  3. String? syllabusUrl,
  4. String? timeChannelUrl,
})

Implementation

CourseSettings copyWith({
  enums.CourseSkillLevel? skillLevel,
  bool? isSkillLevelEnabled,
  String? syllabusUrl,
  String? timeChannelUrl,
}) {
  return CourseSettings(
    skillLevel: skillLevel ?? this.skillLevel,
    isSkillLevelEnabled: isSkillLevelEnabled ?? this.isSkillLevelEnabled,
    syllabusUrl: syllabusUrl ?? this.syllabusUrl,
    timeChannelUrl: timeChannelUrl ?? this.timeChannelUrl,
  );
}