continuousMove method Null safety

Future<bool> continuousMove(
  1. String profileToken,
  2. PtzPosition velocity,
  3. [int? timeout]
)

Operation for continuous Pan/Tilt and Zoom movements. The operation is supported if the PTZNode supports at least one continuous Pan/Tilt or Zoom space. If the space argument is omitted, the default space set by the PtzConfiguration will be used.

Implementation

Future<bool> continuousMove(String profileToken, PtzPosition velocity,
    [int? timeout]) async {
  loggy.debug('continuousMove');

  final envelope = await Soap.retrieveEnvelope(
      uri,
      onvif.secureRequest(
          SoapRequest.continuousMove(profileToken, velocity, timeout)));

  if (envelope.body.continuousMoveResponse == null) {
    throw Exception();
  }

  return true;
}