ModerationAnalysis class

Extended moderation analysis result

Constructors

ModerationAnalysis.new({required String text, required bool flagged, required Map<String, bool> categories, required Map<String, double> categoryScores, String? highestRiskCategory, required String riskLevel, required List<String> recommendations})
const

Properties

categories Map<String, bool>
final
categoryScores Map<String, double>
final
flagged bool
final
hashCode int
The hash code for this object.
no setterinherited
highestRiskCategory String?
final
recommendations List<String>
final
riskLevel String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited