button property

int? button
final

The mouse button that triggered the event: 0 for primary/left, 1 for auxiliary/middle, 2 for secondary/right.

Populated for mouse and pointer events. Remains null for other event types.

Implementation

final int? button;