blob: 44932a67231828a1c261e84735ed0e8330a0b820 [file] [log] [blame] [view]
[![Pub](https://img.shields.io/pub/v/platform.svg)](https://pub.dartlang.org/packages/platform)
A generic platform abstraction for Dart.
Like `dart:io`, `package:platform` supplies a rich, Dart-idiomatic API for
accessing platform-specific information.
`package:platform` provides a lightweight wrapper around the static `Platform`
properties that exist in `dart:io`. However, it uses instance properties rather
than static properties, making it possible to mock out in tests.