commit | feeab7a85c245193f96cff32fc19c567e97c58c9 | [log] [tgz] |
---|---|---|
author | Todd Volkert <tvolkert@users.noreply.github.com> | Tue Jan 24 20:15:06 2017 -0800 |
committer | GitHub <noreply@github.com> | Tue Jan 24 20:15:06 2017 -0800 |
tree | 533ec82324f289f8ed90a34aea877a6f30027e85 | |
parent | e9c7837a0dbe88fe1bb78378983ecd53cd560027 [diff] |
Add `Platform` interface files (#1)
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.