stateMachineGetStringInput method

String? stateMachineGetStringInput(
  1. String key
)

Implementation

String? stateMachineGetStringInput(String key) {
  if (dotLottiePlayer != null && !isDisposed) {
    try {
      final player = dotLottiePlayer as JSObject;
      final method = player['stateMachineGetStringInput'.toJS] as JSFunction;
      final result = method.callAsFunction(player, key.toJS);
      return (result as JSString?)?.toDart;
    } catch (e) {
      return null;
    }
  }
  return null;
}