copyWith method

Space copyWith({
  1. String? id,
  2. String? key,
  3. String? name,
  4. String? type,
  5. String? status,
  6. String? authorId,
  7. DateTime? createdAt,
  8. String? homepageId,
  9. SpaceDescription? description,
  10. SpaceIcon? icon,
})

Implementation

Space copyWith(
    {String? id,
    String? key,
    String? name,
    String? type,
    String? status,
    String? authorId,
    DateTime? createdAt,
    String? homepageId,
    SpaceDescription? description,
    SpaceIcon? icon}) {
  return Space(
    id: id ?? this.id,
    key: key ?? this.key,
    name: name ?? this.name,
    type: type ?? this.type,
    status: status ?? this.status,
    authorId: authorId ?? this.authorId,
    createdAt: createdAt ?? this.createdAt,
    homepageId: homepageId ?? this.homepageId,
    description: description ?? this.description,
    icon: icon ?? this.icon,
  );
}