copyWithWrapped method

SampleModel copyWithWrapped({
  1. Wrapped<double>? interval,
  2. Wrapped<List<Object>>? items,
  3. Wrapped<String>? timestamp,
})

Implementation

SampleModel copyWithWrapped(
    {Wrapped<double>? interval,
    Wrapped<List<Object>>? items,
    Wrapped<String>? timestamp}) {
  return SampleModel(
      interval: (interval != null ? interval.value : this.interval),
      items: (items != null ? items.value : this.items),
      timestamp: (timestamp != null ? timestamp.value : this.timestamp));
}