copyWith method

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

Implementation

Space copyWith(
    {dynamic id,
    String? key,
    String? name,
    String? type,
    String? status,
    DateTime? createdAt,
    dynamic 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,
    createdAt: createdAt ?? this.createdAt,
    homepageId: homepageId ?? this.homepageId,
    description: description ?? this.description,
    icon: icon ?? this.icon,
  );
}