platform library
Classes
- FakePlatform
- Provides a mutable implementation of the Platform interface.
- LocalPlatform
-
Platform
implementation that delegates directly todart:io
. - Platform
-
Provides API parity with the
Platform
class indart:io
, but using instance properties rather than static properties. This difference enables the use of these APIs in tests, where you can provide mock implementations.
Extensions
- PlatformLinuxDesktop on Platform
- Detects the Linux desktop environment.
- PlatformLinuxDistro on Platform
- Detects the Linux distro.