defaultPointerDeviceKind function
Implementation
PointerDeviceKind defaultPointerDeviceKind(BuildContext context) {
final platform = Theme.of(context).platform; // ?? defaultTargetPlatform;
switch (platform) {
case TargetPlatform.iOS:
case TargetPlatform.android:
return PointerDeviceKind.touch;
case TargetPlatform.linux:
case TargetPlatform.macOS:
case TargetPlatform.windows:
return PointerDeviceKind.mouse;
case TargetPlatform.fuchsia:
return PointerDeviceKind.unknown;
}
}