DomainModel constructor

const DomainModel({
  1. required String id,
  2. required String name,
  3. required String slug,
  4. String? description,
  5. String? iconName,
  6. @Default(0) 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 DomainModel({
  required String id,
  required String name,
  required String slug,
  String? description,
  String? iconName,
  @Default(0) 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 this model simply
  /// never mapped.
  String? orgId,

  /// Curated starter curriculum, surfaced in the in-app catalog. Set only by
  /// platform admins (migration 072's `enforce_domain_starter_flag`).
  @Default(false) bool isStarter,
  String? domainFamily,
  String? variant,
}) = _DomainModel;