actionsForTrigger method

Iterable<Action> actionsForTrigger(
  1. ActionTrigger trigger, {
  2. bool checkPrecondition = true,
})

Generates all actions for trigger.

Implementation

Iterable<Action> actionsForTrigger(
  ActionTrigger trigger, {
  bool checkPrecondition = true,
}) =>
    checkPrecondition
        ? actionsByEvent[trigger.event]!
            .where((e) => e.precondition?.call(trigger) ?? true)
        : actionsByEvent[trigger.event]!;