stateMachineStart method

bool stateMachineStart()

Implementation

bool stateMachineStart() {
  if (dotLottiePlayer != null && !isDisposed) {
    try {
      final player = dotLottiePlayer as JSObject;
      final method = player['stateMachineStart'.toJS] as JSFunction;
      final result = method.callAsFunction(player);
      return (result as JSBoolean?)?.toDart ?? true;
    } catch (e) {
      return false;
    }
  }
  return false;
}