A Trigger is a specification of any condition which starts and stops Tasks at certain points in time when the condition applies. The condition can either be time-bound, based on data streams, initiated by a user of the platform, or a combination of these.
- $type ↔ String
The runtime class name (type) of this object.
Used for deserialization from JSON objects.
read / write, inherited
- hashCode → int
The hash code for this object. [...]
- runtimeType → Type
A representation of the runtime type of the object.
The list of
Tasks in this Trigger.read / write
- triggerId ↔ String
A unique id of this trigger.
Is used when storing data to know what triggered the data collection.
read / write
Task task) → void
- Add a Task to this Trigger
Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
Function fromJsonFunction) → void
Use this method to register a custom fromJson function for this class
in the FromJsonFactory.
) → Map< String, dynamic>
Return a JSON encoding of this object.
) → String
A string representation of this object. [...]