stateMachineSetBooleanInput method

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

Implementation

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