Section constructor

const Section({
  1. String? id,
  2. String? name,
  3. String? emoji,
  4. @Default(SectionType.Generic) SectionType sectionType,
  5. @Default(PostLevel.Anyone) PostLevel? postLevel,
  6. @Default(false) bool isClosed,
  7. @Default(false) bool isJoined,
  8. @Default(JoinStatus.NotDefine) JoinStatus? status,
})

Implementation

const factory Section({
  String? id,
  String? name,
  String? emoji,
  @Default(SectionType.Generic) SectionType sectionType,
  @Default(PostLevel.Anyone) PostLevel? postLevel,
  @Default(false) bool isClosed,
  @Default(false) bool isJoined,
  @Default(JoinStatus.NotDefine) JoinStatus? status,
}) = _Section;