buttons property

int? buttons
final

The buttons that were pressed when the pointer event occurred.

This is a nullable value because not all input devices have buttons. You should check the input device's kind before using this value.

Supports mouse and trackpad events.

Implementation

final int? buttons;