touch property

bool get touch

Whether the current platform is a primarily touch-based platform.

This is not 100% accurate as there are hybrid devices that use both touch and keyboard/mouse input, e.g., Windows Surface laptops.

Implementation

bool get touch => this is Touch;