copyWithWrapped method

LongreadMaterialActivity copyWithWrapped({
  1. Wrapped<int>? id,
  2. Wrapped<String>? name,
  3. Wrapped<num>? weight,
  4. Wrapped<double>? maxExercisesCount,
  5. Wrapped<double?>? averageScoreThreshold,
  6. Wrapped<bool>? isLateDaysEnabled,
})

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