commit | 1ffad63428bbd1b3ecaa15926bacfb724023648c | [log] [tgz] |
---|---|---|
author | Michael Thomsen <mit@google.com> | Thu Dec 02 19:11:55 2021 +0100 |
committer | GitHub <noreply@github.com> | Thu Dec 02 10:11:55 2021 -0800 |
tree | c7f7e52874edb632b17786d31314c69e1122a28a | |
parent | 46abb2a74f4110ce632b0019679dcc5fad1fea4b [diff] |
Remove package root (#38) Merging on behalf of @mit-mit
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.