TouchEvent class

The interface represents an UIEvent which is sent when the state of contacts with a touch-sensitive surface changes. This surface can be a touch screen or trackpad, for example. The event can describe one or more points of contact with the screen and includes support for detecting movement, addition and removal of contact points, and so forth. Touches are represented by the Touch object; each touch is described by a position, size and shape, amount of pressure, and target element. Lists of touches are represented by TouchList objects.

Event

UIEvent

TouchEvent

Implemented types
Available extensions
Annotations
  • @JS()
  • @staticInterop

Constructors

TouchEvent(String type, [TouchEventInit? eventInitDict])
factory

Properties

altKey bool

Available on TouchEvent, provided by the PropsTouchEvent extension

no setter
bubbles bool

Available on Event, provided by the PropsEvent extension

no setter
cancelable bool

Available on Event, provided by the PropsEvent extension

no setter
cancelBubble bool

Available on Event, provided by the PropsEvent extension

getter/setter pair
changedTouches TouchList

Available on TouchEvent, provided by the PropsTouchEvent extension

no setter
composed bool

Available on Event, provided by the PropsEvent extension

no setter
ctrlKey bool

Available on TouchEvent, provided by the PropsTouchEvent extension

no setter
currentTarget EventTarget?

Available on Event, provided by the PropsEvent extension

no setter
defaultPrevented bool

Available on Event, provided by the PropsEvent extension

no setter
detail int

Available on UIEvent, provided by the PropsUIEvent extension

no setter
eventPhase int

Available on Event, provided by the PropsEvent extension

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

Available on Event, provided by the PropsEvent extension

no setter
metaKey bool

Available on TouchEvent, provided by the PropsTouchEvent extension

no setter
returnValue ↔ dynamic

Available on Event, provided by the PropsEvent extension

getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shiftKey bool

Available on TouchEvent, provided by the PropsTouchEvent extension

no setter
sourceCapabilities InputDeviceCapabilities?

Available on UIEvent, provided by the PropsUIEvent extension

no setter
srcElement EventTarget?

Available on Event, provided by the PropsEvent extension

no setter
target EventTarget?

Available on Event, provided by the PropsEvent extension

no setter
targetTouches TouchList

Available on TouchEvent, provided by the PropsTouchEvent extension

no setter
timeStamp double

Available on Event, provided by the PropsEvent extension

no setter
touches TouchList

Available on TouchEvent, provided by the PropsTouchEvent extension

no setter
type String

Available on Event, provided by the PropsEvent extension

no setter
view Window?

Available on UIEvent, provided by the PropsUIEvent extension

no setter
which int

Available on UIEvent, provided by the PropsUIEvent extension

no setter

Methods

composedPath() Iterable<EventTarget>

Available on Event, provided by the PropsEvent extension

getModifierState(String keyArg) bool

Available on TouchEvent, provided by the PropsTouchEvent extension

initEvent(String type, [bool? bubbles = false, bool? cancelable = false]) → void

Available on Event, provided by the PropsEvent extension

initUIEvent(String typeArg, [bool? bubblesArg = false, bool? cancelableArg = false, Window? viewArg, int? detailArg = 0]) → void

Available on UIEvent, provided by the PropsUIEvent extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
preventDefault() → void

Available on Event, provided by the PropsEvent extension

stopImmediatePropagation() → void

Available on Event, provided by the PropsEvent extension

stopPropagation() → void

Available on Event, provided by the PropsEvent extension

toString() String
A string representation of this object.
inherited

Operators

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