supported property

bool supported

Checks if touch events supported on the current platform.

Note that touch events are only supported if the user is using a touch device.

Implementation

static bool get supported => Device.isEventTypeSupported('TouchEvent');