supported property

bool supported

Checks if touch events supported on the current platform.

Implementation

static bool get supported {
  try {
    return TouchEvent('touches') is TouchEvent;
  } catch (_) {}

  return false;
}