turnRight method

  1. @override
Future<String> turnRight(
  1. String userId,
  2. num range
)

Turn the camera to the right by range from the user with userId. Rotation range, 10 <= range <= 100.
Return ZoomVideoSDKError_Success if the function succeeds.

Implementation

@override
Future<String> turnRight(String userId, num range) async {
  var params = <String, dynamic>{};
  params.putIfAbsent("userId", () => userId);
  params.putIfAbsent("range", () => range);

  return await methodChannel
      .invokeMethod<String>('turnRight', params)
      .then<String>((String? value) => value ?? "");
}