primary property
bool
get
primary
True if the current platform uses touch as the primary input.
Implementation
static bool get primary => _primary ?? platforms.contains(defaultTargetPlatform);
Implementation
@visibleForTesting
static set primary(bool? value) {
if (!kDebugMode) {
throw UnsupportedError('Setting Touch.primary is only available in debug mode.');
}
_primary = value;
}