copyWith method

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

Implementation

TagModel copyWith(
    {String? id,
    DateTime? day,
    dynamic text,
    DateTime? timestamp,
    List<String>? tags}) {
  return TagModel(
      id: id ?? this.id,
      day: day ?? this.day,
      text: text ?? this.text,
      timestamp: timestamp ?? this.timestamp,
      tags: tags ?? this.tags);
}