registerTriggerFactory method

void registerTriggerFactory(
  1. TriggerFactory factory
)

Register factory which can create TriggerExecutors for the specified TriggerFactory runtime types.

This is used in the createTriggerExecutor method for creating new TriggerExecutors.

Implementation

void registerTriggerFactory(TriggerFactory factory) {
  for (var type in factory.types) {
    _triggerFactories[type] = factory;
  }
  factory.onRegister();
}