copyWith method

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

Implementation

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