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 transport.sendRequest(
      uri,
      transport.securedEnvelope(soap.PtzRequest.continuousMove(profileToken,
          velocity: velocity, timeout: timeout)));

  if (envelope.body.hasFault) {
    throw Exception(envelope.body.fault.toString());
  }

  return true;
}