copyWithWrapped method

SleepContributors copyWithWrapped({
  1. Wrapped? deepSleep,
  2. Wrapped? efficiency,
  3. Wrapped? latency,
  4. Wrapped? remSleep,
  5. Wrapped? restfulness,
  6. Wrapped? timing,
  7. Wrapped? totalSleep,
})

Implementation

SleepContributors copyWithWrapped(
    {Wrapped<dynamic>? deepSleep,
    Wrapped<dynamic>? efficiency,
    Wrapped<dynamic>? latency,
    Wrapped<dynamic>? remSleep,
    Wrapped<dynamic>? restfulness,
    Wrapped<dynamic>? timing,
    Wrapped<dynamic>? totalSleep}) {
  return SleepContributors(
      deepSleep: (deepSleep != null ? deepSleep.value : this.deepSleep),
      efficiency: (efficiency != null ? efficiency.value : this.efficiency),
      latency: (latency != null ? latency.value : this.latency),
      remSleep: (remSleep != null ? remSleep.value : this.remSleep),
      restfulness:
          (restfulness != null ? restfulness.value : this.restfulness),
      timing: (timing != null ? timing.value : this.timing),
      totalSleep: (totalSleep != null ? totalSleep.value : this.totalSleep));
}