SafetyRating class final
Safety rating for a piece of content.
The safety rating contains the category of harm and the harm probability level in that category for a piece of content. Content is classified for safety across a number of harm categories and the probability of the harm classification is included here.
Constructors
- SafetyRating(HarmCategory category, HarmProbability probability)
Properties
- category → HarmCategory
-
The category for this rating.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- probability → HarmProbability
-
The probability of harm for this content.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited