PointerDeviceKind enum Null safety

The kind of pointer device.

Inheritance

Constructors

PointerDeviceKind()
const

Values

touch → const PointerDeviceKind

A touch-based pointer device.

The most common case is a touch screen.

When the user is operating with a trackpad on iOS, clicking will also dispatch events with kind touch if UIApplicationSupportsIndirectInputEvents is not present in Info.plist or returns NO.

See also:

PointerDeviceKind()
mouse → const PointerDeviceKind

A mouse-based pointer device.

The most common case is a mouse on the desktop or Web.

When the user is operating with a trackpad on iOS, moving the pointing cursor will also dispatch events with kind mouse, and clicking will dispatch events with kind mouse if UIApplicationSupportsIndirectInputEvents is not present in Info.plist or returns NO.

See also:

PointerDeviceKind()
stylus → const PointerDeviceKind

A pointer device with a stylus.

PointerDeviceKind()
invertedStylus → const PointerDeviceKind

A pointer device with a stylus that has been inverted.

PointerDeviceKind()
trackpad → const PointerDeviceKind

Gestures from a trackpad.

A trackpad here is defined as a touch-based pointer device with an indirect surface (the user operates the screen by touching something that is not the screen).

When the user makes zoom, pan, scroll or rotate gestures with a physical trackpad, supporting platforms dispatch events with kind trackpad.

Events with kind trackpad can only have a PointerChange of add, remove, and pan-zoom related values.

Some platforms don't support (or don't fully support) trackpad gestures, and might convert trackpad gestures into fake pointer events that simulate dragging. These events typically have kind touch or mouse instead of trackpad. This includes (but is not limited to) Web, and iOS when UIApplicationSupportsIndirectInputEvents isn't present in Info.plist or returns NO.

Moving the pointing cursor or clicking with a trackpad typically triggers touch or mouse events, but never triggers trackpad events.

See also:

PointerDeviceKind()
unknown → const PointerDeviceKind

An unknown pointer device.

PointerDeviceKind()

Properties

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

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

values → const List<PointerDeviceKind>
A constant List of the values in this enum, in order of their declaration.
[touch, mouse, stylus, invertedStylus, trackpad, unknown]