W3cubDocs

/Dart 2

TouchList constructor

TouchList()

NB: This constructor likely does not work as you might expect it to! This constructor will simply fail (returning null) if you are not on a device with touch enabled. See dartbug.com/8314.

Implementation

// TODO(5760): createTouchList now uses varargs.
factory TouchList() => null;

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.5.0/dart-html/TouchList/TouchList.html