copyWith method

StatusDetails copyWith({
  1. String? description,
  2. String? iconUrl,
  3. String? id,
  4. String? name,
  5. String? self,
  6. StatusCategory? statusCategory,
})

Implementation

StatusDetails copyWith(
    {String? description,
    String? iconUrl,
    String? id,
    String? name,
    String? self,
    StatusCategory? statusCategory}) {
  return StatusDetails(
    description: description ?? this.description,
    iconUrl: iconUrl ?? this.iconUrl,
    id: id ?? this.id,
    name: name ?? this.name,
    self: self ?? this.self,
    statusCategory: statusCategory ?? this.statusCategory,
  );
}