tree: 1b1e9435bcd8207e27f2ab1040506b97451e75ae [path history] [tgz]
  1. lib/
  2. analysis_options.yaml
  3. AUTHORS
  4. BUILD.gn
  5. CHANGELOG.md
  6. CONTRIBUTING.md
  7. LICENSE
  8. pubspec.yaml
  9. README.md
platform/README.md

Platform

Build Status - Coverage Status - Pub

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.