PassiveTrigger
A trigger that triggers when the app calls trigger.
Use it to start a task from your own Dart code, e.g. when the user taps a button.
- Inheritance
-
- Object
- Serializable
- TriggerConfiguration
- PassiveTrigger
- Annotations
-
- @JsonSerializable(includeIfNull: false, explicitToJson: true)
Constructors
PassiveTrigger.fromJson
PassiveTrigger
Creates a trigger that triggers when the trigger method is called.
Properties
executor
- @JsonKey(includeFromJson: false, includeToJson: false)
getter/setter pair
The TriggerExecutor that backs this trigger.
Set automatically by the runtime when the trigger executor is created. Do not set this manually.
fromJsonFunction
The function which can convert a JSON string to an object of this type.
Methods
toJson
Return a JSON encoding of this object.
trigger
Triggers this trigger now.
Only works once the study is deployed and the executor is set.