copyWith method

ContentCreateSpace copyWith({
  1. int? id,
  2. String? name,
  3. Icon? icon,
  4. GlobalSpaceIdentifier? identifiers,
  5. ContentCreateSpaceDescription? description,
  6. Content? homepage,
  7. String? type,
  8. ContentCreateSpaceMetadata? metadata,
  9. List<OperationCheckResult>? operations,
  10. List<SpacePermission>? permissions,
  11. String? status,
  12. SpaceSettings? settings,
  13. Theme? theme,
  14. LookAndFeel? lookAndFeel,
  15. ContentCreateSpaceHistory? history,
  16. String? key,
  17. Map<String, dynamic>? links,
})

Implementation

ContentCreateSpace copyWith(
    {int? id,
    String? name,
    Icon? icon,
    GlobalSpaceIdentifier? identifiers,
    ContentCreateSpaceDescription? description,
    Content? homepage,
    String? type,
    ContentCreateSpaceMetadata? metadata,
    List<OperationCheckResult>? operations,
    List<SpacePermission>? permissions,
    String? status,
    SpaceSettings? settings,
    Theme? theme,
    LookAndFeel? lookAndFeel,
    ContentCreateSpaceHistory? history,
    String? key,
    Map<String, dynamic>? links}) {
  return ContentCreateSpace(
    id: id ?? this.id,
    name: name ?? this.name,
    icon: icon ?? this.icon,
    identifiers: identifiers ?? this.identifiers,
    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,
    key: key ?? this.key,
    links: links ?? this.links,
  );
}