stateMachineSetStringInput method

bool stateMachineSetStringInput(
  1. String key,
  2. String value
)

Implementation

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