getInputPropertiesListPropertyItems method

Future<InputPropertiesListPropertyItemsResponse> getInputPropertiesListPropertyItems({
  1. String? inputName,
  2. String? inputUuid,
  3. required String propertyName,
})

Gets the items of a list property from an input's properties.

  • Complexity Rating: 3/5
  • Latest Supported RPC Version: 1
  • Added in v5.0.0

Implementation

Future<InputPropertiesListPropertyItemsResponse>
getInputPropertiesListPropertyItems({
  String? inputName,
  String? inputUuid,
  required String propertyName,
}) async {
  if (inputName == null && inputUuid == null) {
    throw ArgumentError('inputName or inputUuid must be provided');
  }

  final response = await obsWebSocket.sendRequest(
    Request(
      'GetInputPropertiesListPropertyItems',
      requestData: {
        'inputName': inputName,
        'inputUuid': inputUuid,
        'propertyName': propertyName,
      },
    ),
  );

  return InputPropertiesListPropertyItemsResponse.fromJson(
    response!.responseData!,
  );
}