setPortraitSegmentationForegroundPosition method Null safety
Set the position and size of the portrait segmentation foreground.
Point position - The position coordinates of the foreground, containing x and y coordinate values.
Size size - The size of the foreground, containing width and height values.
Precautions: Use after initializing ZegoEffects.
Applicable version: >= 2.1.0
Implementation
Future<void> setPortraitSegmentationForegroundPosition(Point position, Size size) async {
return await _channel.invokeMethod('setPortraitSegmentationForegroundPosition', {'x': position.x, 'y': position.y, 'width': size.width, 'height': size.height});
}