TriggerFactory class abstract

Creates a TriggerExecutor for a TriggerConfiguration by runtime type.

Sampling packages that define their own triggers implement one and register it with ExecutorFactory.registerTriggerFactory. See SmartphoneTriggerFactory for the built-in triggers.

Implementers

Constructors

TriggerFactory()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
types → Set<Type>
The TriggerConfiguration runtime types this factory supports.
no setter

Methods

create(TriggerConfiguration trigger) → TriggerExecutor<TriggerConfiguration>?
Create a TriggerExecutor based on trigger. Returns null if trigger is not supported by this factory.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onRegister() → void
Called when this factory is registered in the ExecutorFactory.
toString() → String
A string representation of this object.
inherited

Operators

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