commit | aba5b2b278d0d70e80b5638ab95ea68954cbd272 | [log] [tgz] |
---|---|---|
author | Michael Goderbauer <goderbauer@google.com> | Fri May 19 09:22:45 2017 -0700 |
committer | GitHub <noreply@github.com> | Fri May 19 09:22:45 2017 -0700 |
tree | 80038dec4643e3e5a6dc798c3ce15818a3bc62a3 | |
parent | 0a85ce065d059b075229d0a77d256c301dea56b2 [diff] |
Add (#12)
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.