setChromaKeyForegroundPosition method Null safety

Future<void> setChromaKeyForegroundPosition(
  1. double x,
  2. double y,
  3. double width,
  4. double height
)

Set the position and size of the chroma key foreground.

double x - The x-coordinate of the foreground. double y - The y-coordinate of the foreground. double width - The width of the foreground. double height - The height of the foreground.

Precautions: Use after initializing ZegoEffects.

Applicable version: >= 2.1.0

Implementation

Future<void> setChromaKeyForegroundPosition(double x, double y, double width, double height) async {
  return await _channel.invokeMethod('setChromaKeyForegroundPosition', {'x': x, 'y': y, 'width': width, 'height': height});
}