remove method
Removes an existing input.
Note: Will immediately remove all associated scene items.
- Complexity Rating: 2/5
- Latest Supported RPC Version: 1
- Added in v5.0.0
Implementation
Future<void> remove({
String? inputName,
String? inputUuid,
}) async {
if (inputName == null && inputUuid == null) {
throw ArgumentError('inputName or inputUuid must be provided');
}
await obsWebSocket.sendRequest(Request(
'RemoveInput',
requestData: {
'inputName': inputName,
'inputUuid': inputUuid,
}..removeWhere((key, value) => value == null),
));
}