copyWith method

TaskCourse copyWith({
  1. int? id,
  2. String? name,
  3. bool? isArchived,
})

Implementation

TaskCourse copyWith({int? id, String? name, bool? isArchived}) {
  return TaskCourse(
    id: id ?? this.id,
    name: name ?? this.name,
    isArchived: isArchived ?? this.isArchived,
  );
}