Skip to main content
Since these getters rely on dart:io.Platform, they will throw an error when compiled for the web. Ensure you only use these methods in mobile and desktop applications.

1

📱 Platform Type

bool
Checks if the application is running on a mobile OS (Android or iOS).
bool
Checks if the application is running on a desktop OS (Windows, Linux, or macOS).
2

🍎 Specific Operating System

bool
Checks if the application is running on an iOS device.
bool
Checks if the application is running on an Android device.
bool
Checks if the application is running on a macOS desktop environment.
bool
Checks if the application is running on a Windows desktop environment.
bool
Checks if the application is running on a Linux desktop environment.
bool
Checks if the application is running on the experimental Fuchsia OS.