copyWith method

ProjectType copyWith({
  1. String? color,
  2. String? descriptionI18nKey,
  3. String? formattedKey,
  4. String? icon,
  5. String? key,
})

Implementation

ProjectType copyWith(
    {String? color,
    String? descriptionI18nKey,
    String? formattedKey,
    String? icon,
    String? key}) {
  return ProjectType(
    color: color ?? this.color,
    descriptionI18nKey: descriptionI18nKey ?? this.descriptionI18nKey,
    formattedKey: formattedKey ?? this.formattedKey,
    icon: icon ?? this.icon,
    key: key ?? this.key,
  );
}