HarmBlockThreshold enum

Probability of harm which causes content to be blocked.

When provided in SafetySetting.threshold, a predicted harm probability at or above this level will block content from being returned.

Inheritance

Constructors

HarmBlockThreshold()
const

Values

unspecified → const HarmBlockThreshold

Threshold is unspecified, block using default threshold.

low → const HarmBlockThreshold

Block when medium or high probability of unsafe content.

medium → const HarmBlockThreshold

Block when medium or high probability of unsafe content.

high → const HarmBlockThreshold

Block when high probability of unsafe content.

none → const HarmBlockThreshold

Always show regardless of probability of unsafe 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

Methods

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

Operators

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

Constants

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