W3cubDocs

/Dart 2

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');

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/2.0.0/dart-html/TouchEvent/supported.html