isMouseEvent property

bool isMouseEvent

Uses Duck Typing to detect if the event instance is a SyntheticMouseEvent.

Implementation

bool get isMouseEvent =>
    _hasProperty('button') || _checkEventType(const ['mouse', 'click', 'drag', 'drop', 'contextmenu']);