setPassthrough method

Future<void> setPassthrough(
  1. String id, {
  2. bool enabled = true,
  3. List<Rect>? regions,
})

Enable click passthrough.

Implementation

Future<void> setPassthrough(
  String id, {
  bool enabled = true,
  List<Rect>? regions,
}) async {
  await send<void>('setPassthrough', windowId: id, params: {
    'enabled': enabled,
    if (regions != null)
      'regions': regions
          .map((r) => {
                'x': r.left,
                'y': r.top,
                'width': r.width,
                'height': r.height,
              })
          .toList(),
  });
}