copyWithWrapped method

LongreadMaterialEstimation copyWithWrapped({
  1. Wrapped<String>? startDate,
  2. Wrapped<String?>? timer,
  3. Wrapped<double?>? maxScore,
  4. Wrapped<DateTime?>? deadline,
  5. Wrapped<LongreadMaterialActivity?>? activity,
})

Implementation

LongreadMaterialEstimation copyWithWrapped({
  Wrapped<String>? startDate,
  Wrapped<String?>? timer,
  Wrapped<double?>? maxScore,
  Wrapped<DateTime?>? deadline,
  Wrapped<LongreadMaterialActivity?>? activity,
}) {
  return LongreadMaterialEstimation(
    startDate: (startDate != null ? startDate.value : this.startDate),
    timer: (timer != null ? timer.value : this.timer),
    maxScore: (maxScore != null ? maxScore.value : this.maxScore),
    deadline: (deadline != null ? deadline.value : this.deadline),
    activity: (activity != null ? activity.value : this.activity),
  );
}