stateMachineFire method

void stateMachineFire(
  1. String event
)

Implementation

void stateMachineFire(String event) {
  if (dotLottiePlayer != null && !isDisposed) {
    try {
      final player = dotLottiePlayer as JSObject;
      final method = player['stateMachineFireEvent'.toJS] as JSFunction;
      method.callAsFunction(player, event.toJS);
    } catch (e) {}
  }
}