trigger abstract method

  1. @Deprecated(_useDataBindingDeprecationMessageSMInput)
TriggerInput? trigger(
  1. String name, {
  2. String? path,
})

Retrieve a trigger input from the state machine with the given name. Trigger the input by calling TriggerInput.fire.

final trigger = stateMachine.trigger('triggerInput');
if (trigger != null) {
 trigger.fire();
}

Optionally provide a path to access a nested input.

Docs: https://rive.app/docs/runtimes/state-machines

Implementation

@Deprecated(_useDataBindingDeprecationMessageSMInput)
TriggerInput? trigger(String name, {String? path});