removePreset method
Operation to remove a PTZ preset for the Node in the selected profile. The operation is supported if the PresetPosition capability exists for the Node in the selected profile.
ACCESS CLASS: ACTUATE
Implementation
Future<bool> removePreset(String profileToken,
{required Preset preset}) async {
loggy.debug('removePreset');
final responseEnvelope = await transport.securedRequest(
uri,
soap.Body(
request: PtzRequest.removePreset(profileToken, preset: preset),
));
return responseEnvelope.body.response
?.containsKey('RemovePresetResponse') ??
false;
}