SafetyCategory enum

Inheritance

Constructors

SafetyCategory(String value)
const

Values

harassment → const SafetyCategory

harassment Negative or harmful comments targeting identity and/or protected attributes.

const SafetyCategory('HARM_CATEGORY_HARASSMENT')
hateSpeech → const SafetyCategory

hateSpeech Content that is rude, disrespectful, or profane.

const SafetyCategory('HARM_CATEGORY_HATE_SPEECH')
sexuallyExplicit → const SafetyCategory

sexuallyExplicit Contains references to sexual acts or other lewd content.

const SafetyCategory('HARM_CATEGORY_SEXUALLY_EXPLICIT')
dangerous → const SafetyCategory

dangerous Promotes, facilitates, or encourages harmful acts.

const SafetyCategory('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
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value 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.
inherited

Operators

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

Constants

values → const List<SafetyCategory>
A constant List of the values in this enum, in order of their declaration.