removePreset method Null safety

Future<void> removePreset(
  1. String profileToken,
  2. Preset preset
)

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.

Implementation

Future<void> removePreset(String profileToken, Preset preset) async {
  loggy.debug('removePreset');

  await Soap.retrieveEnvelope(uri,
      onvif.secureRequest(SoapRequest.removePreset(profileToken, preset)));
}