copyWith method
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,
})
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,
);