setToolWidth method

  1. @override
Future<String> setToolWidth(
  1. num width
)

Sets the annotation tool width with parameter width.
Return ZoomVideoSDKError_Success if the function succeeds. Otherwise, this function returns an error.

Implementation

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

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