isTouchPlatform function
Implementation
bool isTouchPlatform(TargetPlatform platform) => switch (platform) {
TargetPlatform.android ||
TargetPlatform.iOS ||
TargetPlatform.fuchsia => true,
TargetPlatform.linux ||
TargetPlatform.macOS ||
TargetPlatform.windows => false,
};