copyWith method

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

Implementation

SleepContributors copyWith(
    {dynamic deepSleep,
    dynamic efficiency,
    dynamic latency,
    dynamic remSleep,
    dynamic restfulness,
    dynamic timing,
    dynamic totalSleep}) {
  return SleepContributors(
      deepSleep: deepSleep ?? this.deepSleep,
      efficiency: efficiency ?? this.efficiency,
      latency: latency ?? this.latency,
      remSleep: remSleep ?? this.remSleep,
      restfulness: restfulness ?? this.restfulness,
      timing: timing ?? this.timing,
      totalSleep: totalSleep ?? this.totalSleep);
}