copyWith method

Space copyWith({
  1. int? id,
  2. String? key,
  3. String? name,
  4. Icon? icon,
  5. SpaceDescriptionValue? description,
  6. Content? homepage,
  7. String? type,
  8. SpaceMetadata? metadata,
  9. List<OperationCheckResult>? operations,
  10. List<SpacePermission>? permissions,
  11. String? status,
  12. SpaceSettings? settings,
  13. Theme? theme,
  14. LookAndFeel? lookAndFeel,
  15. SpaceHistory? history,
  16. SpaceExpandable? expandable,
  17. GenericLinks? links,
})

Implementation

Space copyWith(
    {int? id,
    String? key,
    String? name,
    Icon? icon,
    SpaceDescriptionValue? description,
    Content? homepage,
    String? type,
    SpaceMetadata? metadata,
    List<OperationCheckResult>? operations,
    List<SpacePermission>? permissions,
    String? status,
    SpaceSettings? settings,
    Theme? theme,
    LookAndFeel? lookAndFeel,
    SpaceHistory? history,
    SpaceExpandable? expandable,
    GenericLinks? links}) {
  return Space(
    id: id ?? this.id,
    key: key ?? this.key,
    name: name ?? this.name,
    icon: icon ?? this.icon,
    description: description ?? this.description,
    homepage: homepage ?? this.homepage,
    type: type ?? this.type,
    metadata: metadata ?? this.metadata,
    operations: operations ?? this.operations,
    permissions: permissions ?? this.permissions,
    status: status ?? this.status,
    settings: settings ?? this.settings,
    theme: theme ?? this.theme,
    lookAndFeel: lookAndFeel ?? this.lookAndFeel,
    history: history ?? this.history,
    expandable: expandable ?? this.expandable,
    links: links ?? this.links,
  );
}