copyWith method

CourseProgressState copyWith({
  1. Map<String, CourseProgress>? byCourse,
  2. int? serial,
})

Implementation

CourseProgressState copyWith({
  Map<String, CourseProgress>? byCourse,
  int? serial,
}) => CourseProgressState(
  byCourse: Map.unmodifiable(byCourse ?? this.byCourse),
  serial: serial ?? this.serial,
);