onTertiaryTapDown property

EventCallback? onTertiaryTapDown

The callback that is currently being run onTap.

If null, this WinEvent can be skipped.

Implementation

EventCallback get onTertiaryTapDown => _callbacks[WinEvent.middleButtonDown];
void onTertiaryTapDown=(EventCallback? onTertiaryTapDown)

Register this callback to be called, whenever the associated WinEvent is fired.

If null is passed, the callback will be removed. This should mean better performance as the native code won't have to call into dart for this even anymore.

{@macro betrayal.expose_more_members_on_interaction}

It would be possible to also expose the hWnd and WinEvent as well (See _TrayIconInteraction).

Implementation

set onTertiaryTapDown(EventCallback onTertiaryTapDown) =>
    _manageEventSubscription(WinEvent.middleButtonDown, onTertiaryTapDown);