copyWith method

Priority copyWith({
  1. String? description,
  2. String? iconUrl,
  3. String? id,
  4. bool? isDefault,
  5. String? name,
  6. String? self,
  7. String? statusColor,
})

Implementation

Priority copyWith(
    {String? description,
    String? iconUrl,
    String? id,
    bool? isDefault,
    String? name,
    String? self,
    String? statusColor}) {
  return Priority(
    description: description ?? this.description,
    iconUrl: iconUrl ?? this.iconUrl,
    id: id ?? this.id,
    isDefault: isDefault ?? this.isDefault,
    name: name ?? this.name,
    self: self ?? this.self,
    statusColor: statusColor ?? this.statusColor,
  );
}