copyWith method
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,
);
}