turnDown method

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

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

Implementation

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

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