getStatus method Null safety
- String profileToken
Operation to request PTZ status for the Node in the selected profile.
Implementation
Future<PtzStatus> getStatus(String profileToken) async {
loggy.debug('getStatus');
final envelope = await Soap.retrieveEnvelope(
uri, onvif.secureRequest(SoapRequest.status(profileToken)));
if (envelope.body.statusResponse == null) throw Exception();
return envelope.body.statusResponse!.ptzStatus;
}