platform library
Provides platform detection utilities (web, Android, iOS, etc.)
Use it to check platform conditions like:
if (isWeb) { ... }
if (isAndroid) { ... }
Properties
- isAndroid → bool
-
Returns
trueif running on an Android device.no setter - isIOS → bool
-
Returns
trueif running on an iOS device.no setter - isLinux → bool
-
Returns
trueif running on a Linux desktop system.no setter - isMacOS → bool
-
Returns
trueif running on a macOS desktop system.no setter - isWeb → bool
-
Returns
trueif the current platform is a web environment.no setter - isWindows → bool
-
Returns
trueif running on a Windows desktop system.no setter