copyWithWrapped method

TagModel copyWithWrapped({
  1. Wrapped<String>? id,
  2. Wrapped<DateTime>? day,
  3. Wrapped? text,
  4. Wrapped<DateTime>? timestamp,
  5. Wrapped<List<String>>? tags,
})

Implementation

TagModel copyWithWrapped(
    {Wrapped<String>? id,
    Wrapped<DateTime>? day,
    Wrapped<dynamic>? text,
    Wrapped<DateTime>? timestamp,
    Wrapped<List<String>>? tags}) {
  return TagModel(
      id: (id != null ? id.value : this.id),
      day: (day != null ? day.value : this.day),
      text: (text != null ? text.value : this.text),
      timestamp: (timestamp != null ? timestamp.value : this.timestamp),
      tags: (tags != null ? tags.value : this.tags));
}