copyWith method

TaskExerciseActivity copyWith({
  1. int? id,
  2. String? name,
  3. num? weight,
  4. bool? isLateDaysEnabled,
})

Implementation

TaskExerciseActivity copyWith({
  int? id,
  String? name,
  num? weight,
  bool? isLateDaysEnabled,
}) {
  return TaskExerciseActivity(
    id: id ?? this.id,
    name: name ?? this.name,
    weight: weight ?? this.weight,
    isLateDaysEnabled: isLateDaysEnabled ?? this.isLateDaysEnabled,
  );
}