DomainEntity constructor

const DomainEntity({
  1. required String id,
  2. required String name,
  3. required String slug,
  4. String? description,
  5. String? iconName,
  6. required int sortOrder,
  7. String? ownerId,
  8. @Default('public') String visibility,
  9. String? orgId,
  10. @Default(false) bool isStarter,
  11. String? domainFamily,
  12. String? variant,
})

Implementation

const factory DomainEntity({
  required String id,
  required String name,
  required String slug,
  String? description,
  String? iconName,
  required int sortOrder,
  String? ownerId,
  @Default('public') String visibility,

  /// Owning organization, when the domain is org content rather than a
  /// personal one. A real column since migration 025 that the model never
  /// mapped.
  String? orgId,

  /// Curated starter curriculum, surfaced in the in-app catalog.
  @Default(false) bool isStarter,
  String? domainFamily,
  String? variant,
}) = _DomainEntity;