platform_info 1.0.1
platform_info: ^1.0.1 copied to clipboard
Containts info about current platform such as Build mode and Operating system
platform_info #
About #
Works on the web, mobile phones, desktops and console.
Provides platform () information such as:
-
Build mode
- release
- profile
- debug
-
Host platform type
- io
- web
-
Operation system
- Fuchsia
- Linux
- MacOS
- Windows
- iOS
- Android
- Unknown
-
Version
-
Locale string
-
The number of individual execution units of the machine.
-
Operating system is known type
-
Is mobile device
For example: #
// Just create Platform() singleton object
final Platform _platform = Platform();
final String version = _platform.version;
print(version);
Changelog #
Refer to the Changelog to get all release notes.