CompositeTrigger class

Composite trigger that combines multiple triggers.

Supports AND (all must fire), OR (any must fire), and sequence (must fire in order within a timeout) operators.

Implemented types

Constructors

CompositeTrigger({required CompositeOperator operator, required List<Trigger> triggers, Duration? sequenceTimeout, bool? resetOnMismatch, String? id})

Properties

hashCode int
The hash code for this object.
no setterinherited
id String
Trigger identifier.
final
operator CompositeOperator
How to combine the child triggers.
final
resetOnMismatch bool?
Whether to reset the sequence when a trigger fires out of order.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sequenceTimeout Duration?
Timeout for sequence operator (how long to wait for all triggers).
final
triggers List<Trigger>
Child triggers to combine.
final
type → TriggerType
Trigger type.
no setteroverride

Methods

isSatisfied() bool
Check if the composite trigger condition is satisfied.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
recordTriggerFired(String triggerId) → void
Record that a child trigger has fired.
reset() → void
Reset tracked trigger state.
toString() String
A string representation of this object.
inherited

Operators

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