button property

int button

Returns the button being clicked if it is a mouse event, or null if not.

Implementation

int get button => _safeOriginal((e) => e.button);