triggerInput method

void triggerInput(
  1. String name,
  2. String path
)

Convenience method for firing a trigger input with a given name on a nested artboard at path.

Also see getTriggerInput to get a reference to the trigger input. If the trigger happens frequently, it's more efficient to get a reference to the trigger input and call trigger.fire() directly.

Implementation

void triggerInput(String name, String path) =>
    getTriggerInput(name, path)?.fire();