Containts info about current platform such as Build mode and Operating system
Cross-platform io/html package.
Works on the web, mobile phones, desktops and console.
Fully caches itself on first initialization.
Can serialize to JSON map.
Provides platform information such as:
Host platform type
The number of individual execution units of the machine.
Operating system is known type
Is mobile device (Android, iOS)
Is desktop device (Windows, MacOS, Fuchsia)
Is material (Android, Fuchsia)
Is cupertino (MacOS, iOS)
For example: #
// Just create Platform() singleton object final Platform _platform = Platform(); final String version = _platform.version; print(version);
Refer to the Changelog to get all release notes.