Touch extension type
The Touch
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 forradiusX
andradiusY
; if the hardware reports only a single point, these values will be 1.
Properties
- altitudeAngle → num
-
no setter
- azimuthAngle → num
-
no setter
- clientX → num
-
no setter
- clientY → num
-
no setter
- force → num
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- identifier → int
-
no setter
- pageX → num
-
no setter
- pageY → num
-
no setter
- radiusX → num
-
no setter
- radiusY → num
-
no setter
- rotationAngle → num
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- screenX → num
-
no setter
- screenY → num
-
no setter
- target → EventTarget
-
no setter
- touchType → TouchType
-
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