MouseButton class Null safety

Common mouse button for webdriver.

Please refer to both json wire spec here: https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidclick and w3c spec here: https://w3c.github.io/uievents/#dom-mouseevent-button

Constructors

MouseButton(int value)
value for a mouse button is defined in https://w3c.github.io/uievents/#widl-MouseEvent-button
const

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
value int
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

auxiliary → const MouseButton
The auxiliary button is usually the middle button, often combined with a mouse wheel.
primary → const MouseButton
The primary button is usually the left button or the only button on single-button devices, used to activate a user interface control or select text.
secondary → const MouseButton
The secondary button is usually the right button, often used to display a context menu.
x1 → const MouseButton
Optional button to fire back action on a mouse. Defined in W3C.
x2 → const MouseButton
Optional button to fire forward action on a mouse. Defined in W3C.