triggerNow method

void triggerNow({
  1. List? interactionParameters,
})

Triggers immediately.

Implementation

void triggerNow({List? interactionParameters}) {
  log('triggerNow');

  if (interactionParameters != null) {
    _lastInteractionParameters = interactionParameters;
  }

  _triggerScheduled = false;
  _interactionNotTriggered = false;
  _initInteractionTime = null;

  if (functionToTrigger != null) {
    try {
      functionToTrigger!();
    } catch (e, s) {
      print(e);
      print(s);
    }
  }

  onComplete.add(this);
}