Touch class

The interface represents a single contact point on a touch-sensitive device. The contact point is commonly a finger or stylus and the device may be a touchscreen or trackpad. The Touch.radiusX, Touch.radiusY, and Touch.rotationAngle describe the area of contact between the user and the screen, the touch area. This can be helpful when dealing with imprecise pointing devices such as fingers. These values are set to describe an ellipse that as closely as possible matches the entire area of contact (such as the user's fingertip).

Note: Many of the properties' values are hardware-dependent; for example, if the device doesn't have a way to detect the amount of pressure placed on the surface, the force value will always be 0. This may also be the case for radiusX and radiusY; if the hardware reports only a single point, these values will be 1.

Available extensions
Annotations
  • @JS()
  • @staticInterop

Constructors

Touch(TouchInit touchInitDict)
factory

Properties

altitudeAngle double

Available on Touch, provided by the PropsTouch extension

no setter
azimuthAngle double

Available on Touch, provided by the PropsTouch extension

no setter
clientX double

Available on Touch, provided by the PropsTouch extension

no setter
clientY double

Available on Touch, provided by the PropsTouch extension

no setter
force double

Available on Touch, provided by the PropsTouch extension

no setter
hashCode int
The hash code for this object.
no setterinherited
identifier int

Available on Touch, provided by the PropsTouch extension

no setter
pageX double

Available on Touch, provided by the PropsTouch extension

no setter
pageY double

Available on Touch, provided by the PropsTouch extension

no setter
radiusX double

Available on Touch, provided by the PropsTouch extension

no setter
radiusY double

Available on Touch, provided by the PropsTouch extension

no setter
rotationAngle double

Available on Touch, provided by the PropsTouch extension

no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
screenX double

Available on Touch, provided by the PropsTouch extension

no setter
screenY double

Available on Touch, provided by the PropsTouch extension

no setter
target EventTarget

Available on Touch, provided by the PropsTouch extension

no setter
touchType TouchType

Available on Touch, provided by the PropsTouch extension

no setter

Methods

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

Operators

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