commit | 4f5890dc51776c0659ff1deaaf5e4f6c0ebd38bd | [log] [tgz] |
---|---|---|
author | Phil Quitslund <pq@users.noreply.github.com> | Tue Mar 28 14:26:27 2017 -0700 |
committer | Michael Goderbauer <goderbauer@google.com> | Tue Mar 28 14:26:27 2017 -0700 |
tree | a35e942defaee8e38b15b3cc1d5d871c3af2eeaf | |
parent | 3e25e060517124bc6b398161dc5cbafe285fedbe [diff] |
Add pub shield. (#8)
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.