setConfidential method Null safety

void setConfidential(
  1. String id,
  2. double x,
  3. double y,
  4. double width,
  5. double height
)

Pass the confidential rect to native SDK. This rect will be cut/hidden when sharing video(stream of your screen) with remote participants

Implementation

void setConfidential(String id, double x, double y, double width, double height) {
  var map = <String, dynamic>{
    'id': id,
    'x': x,
    'y': y,
    'width': width,
    'height': height
  };

  _channel.invokeMethod(_pm.kSetConfidential, map);
}