ModerationCauseLabel constructor

const ModerationCauseLabel({
  1. required ModerationCauseSource source,
  2. required Label label,
  3. required InterpretedLabelValueDefinition labelDef,
  4. required LabelTarget target,
  5. required LabelPreference setting,
  6. required Map<ModerationBehaviorContext, ModerationBehavior> behavior,
  7. @Default(false) bool noOverride,
  8. @Assert(_assertEvalPriority) @Default(0) int priority,
  9. @Default(false) bool downgraded,
})

Implementation

const factory ModerationCauseLabel({
  required ModerationCauseSource source,
  required Label label,
  required InterpretedLabelValueDefinition labelDef,
  required LabelTarget target,
  required LabelPreference setting,
  required Map<ModerationBehaviorContext, ModerationBehavior> behavior,
  @Default(false) bool noOverride,
  @Assert(_assertEvalPriority) @Default(0) int priority,
  @Default(false) bool downgraded,
}) = _ModerationCauseLabel;