setPassthrough method
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(),
});
}