copyWithWrapped method
Implementation
LongreadMaterialActivity copyWithWrapped({
Wrapped<int>? id,
Wrapped<String>? name,
Wrapped<num>? weight,
Wrapped<double>? maxExercisesCount,
Wrapped<double?>? averageScoreThreshold,
Wrapped<bool>? isLateDaysEnabled,
}) {
return LongreadMaterialActivity(
id: (id != null ? id.value : this.id),
name: (name != null ? name.value : this.name),
weight: (weight != null ? weight.value : this.weight),
maxExercisesCount: (maxExercisesCount != null
? maxExercisesCount.value
: this.maxExercisesCount),
averageScoreThreshold: (averageScoreThreshold != null
? averageScoreThreshold.value
: this.averageScoreThreshold),
isLateDaysEnabled: (isLateDaysEnabled != null
? isLateDaysEnabled.value
: this.isLateDaysEnabled),
);
}