actionsForTrigger method
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]!;