copyWith method

Tag copyWith({
  1. int? id,
  2. DateTime? dbDateCreated,
  3. DateTime? dbDateUpdated,
  4. String? category,
  5. String? name,
  6. String? description,
  7. TagColor? color,
  8. bool? important,
  9. TagStatus? status,
  10. List<int>? allowedPositions,
})

Implementation

Tag copyWith(
    {int? id,
    DateTime? dbDateCreated,
    DateTime? dbDateUpdated,
    String? category,
    String? name,
    String? description,
    enums.TagColor? color,
    bool? important,
    enums.TagStatus? status,
    List<int>? allowedPositions}) {
  return Tag(
      id: id ?? this.id,
      dbDateCreated: dbDateCreated ?? this.dbDateCreated,
      dbDateUpdated: dbDateUpdated ?? this.dbDateUpdated,
      category: category ?? this.category,
      name: name ?? this.name,
      description: description ?? this.description,
      color: color ?? this.color,
      important: important ?? this.important,
      status: status ?? this.status,
      allowedPositions: allowedPositions ?? this.allowedPositions);
}