SafetyThreshold enum

Inheritance

Constructors

SafetyThreshold(String value)
const

Values

blockNone → const SafetyThreshold

blockNone Always show regardless of probability of unsafe content

const SafetyThreshold('BLOCK_NONE')
blockOnlyHigh → const SafetyThreshold

blockOnlyHigh Block when high probability of unsafe content

const SafetyThreshold('BLOCK_ONLY_HIGH')
blockMediumAndAbove → const SafetyThreshold

blockMediumAndAbove Block when medium or high probability of unsafe content

const SafetyThreshold('BLOCK_MEDIUM_AND_ABOVE')
blockLowAndAbove → const SafetyThreshold

blockLowAndAbove Block when low, medium or high probability of unsafe content

const SafetyThreshold('BLOCK_LOW_AND_ABOVE')
harmBlockThresholdUnspecified → const SafetyThreshold

harmBlockThresholdUnspecified Threshold is unspecified, block using default threshold

const SafetyThreshold('HARM_BLOCK_THRESHOLD_UNSPECIFIED')

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<SafetyThreshold>
A constant List of the values in this enum, in order of their declaration.