ModerationCauseLabel constructor
const
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,
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;