copyWith method

Status copyWith({
  1. int? id,
  2. String? name,
  3. String? color_code,
  4. String? description,
  5. String? created_at,
  6. String? updated_at,
  7. String? deleted_at,
})

Implementation

Status copyWith({
  int? id,
  String? name,
  String? color_code,
  String? description,
  String? created_at,
  String? updated_at,
  String? deleted_at,
}) {
  return Status(
    id: id ?? this.id,
    name: name ?? this.name,
    color_code: color_code ?? this.color_code,
    description: description ?? this.description,
    created_at: created_at ?? this.created_at,
    updated_at: updated_at ?? this.updated_at,
    deleted_at: deleted_at ?? this.deleted_at,
  );
}