copyWith method

StatusCategory copyWith({
  1. String? colorName,
  2. int? id,
  3. String? key,
  4. String? name,
  5. String? self,
})

Implementation

StatusCategory copyWith(
    {String? colorName, int? id, String? key, String? name, String? self}) {
  return StatusCategory(
    colorName: colorName ?? this.colorName,
    id: id ?? this.id,
    key: key ?? this.key,
    name: name ?? this.name,
    self: self ?? this.self,
  );
}