SafetyPlanFallback class
A class that creates a 'fallback'. This is what you give to the Safety Plan to execute code on your behalf, depending on the user's safety settings.
Constructors
- SafetyPlanFallback(SafetyPlanOptions safetyOption, SafetyFallBackOptions fallbackOption, [VoidCallback? fallbackCode])
-
const
Properties
- fallbackCode → VoidCallback?
-
If you want to use the alternate code error option, this is
the code that will alternatively be run.
final
- fallbackOption → SafetyFallBackOptions
-
How you want to handle that violation
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- safetyOption → SafetyPlanOptions
-
Describes what option you may be 'violating'
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