copyWith method

SearchGroup copyWith({
  1. String? id,
  2. String? name,
  3. String? description,
  4. int? icon,
  5. int? color,
  6. int? priority,
})

Creates a copy of this group with updated fields.

Implementation

SearchGroup copyWith({
  String? id,
  String? name,
  String? description,
  int? icon,
  int? color,
  int? priority,
}) {
  return SearchGroup(
    id: id ?? this.id,
    name: name ?? this.name,
    description: description ?? this.description,
    icon: icon ?? this.icon,
    color: color ?? this.color,
    priority: priority ?? this.priority,
  );
}