copyWith method

Course copyWith(
  1. {String? code,
  2. String? title,
  3. String? className,
  4. String? group,
  5. String? units,
  6. String? hours,
  7. String? required,
  8. String? at,
  9. List<SectionTime>? times,
  10. Location? location,
  11. List<String>? instructors}
)

Implementation

Course copyWith({
  String? code,
  String? title,
  String? className,
  String? group,
  String? units,
  String? hours,
  String? required,
  String? at,
  List<SectionTime>? times,
  Location? location,
  List<String>? instructors,
}) =>
    Course(
      code: code ?? this.code,
      title: title ?? this.title,
      className: className ?? this.className,
      group: group ?? this.group,
      units: units ?? this.units,
      hours: hours ?? this.hours,
      required: required ?? this.required,
      at: at ?? this.at,
      times: times ?? this.times,
      location: location ?? this.location,
      instructors: instructors ?? this.instructors,
    );