HarmCategory enum
The category of a rating.
These categories cover various kinds of harms that developers may wish to adjust.
Values
- unknown → const HarmCategory
-
Harm category is not specified.
const HarmCategory('UNKNOWN')
- harassment → const HarmCategory
-
Malicious, intimidating, bullying, or abusive comments targeting another individual.
const HarmCategory('HARM_CATEGORY_HARASSMENT')
- hateSpeech → const HarmCategory
-
Negative or harmful comments targeting identity and/or protected attributes.
const HarmCategory('HARM_CATEGORY_HATE_SPEECH')
- sexuallyExplicit → const HarmCategory
-
Contains references to sexual acts or other lewd content.
const HarmCategory('HARM_CATEGORY_SEXUALLY_EXPLICIT')
- dangerousContent → const HarmCategory
-
Promotes or enables access to harmful goods, services, and activities.
const HarmCategory('HARM_CATEGORY_DANGEROUS_CONTENT')
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - 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
-
toJson(
) → String - Convert to json format.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
HarmCategory> - A constant List of the values in this enum, in order of their declaration.