setIgnoreMouseEvents method
Makes the window ignore all mouse events.
All mouse events happened in this window will be passed to the window
below this window, but if this window has focus, it will still receive
keyboard events. With forward, the window still hears the pointer move
over it where the platform can tell it (macOS, Windows and X11); elsewhere
the mouse events are ignored without it.
Implementation
Future<void> setIgnoreMouseEvents(bool ignore, {bool forward = false}) async {
final window = _target;
if (window == null) return;
if (!window.setIgnoreMouseEvents(ignore, forward) && forward) {
window.setIgnoreMouseEvents(ignore, false);
}
}