commit | 46abb2a74f4110ce632b0019679dcc5fad1fea4b | [log] [tgz] |
---|---|---|
author | Greg Spencer <gspencergoog@users.noreply.github.com> | Tue Aug 31 16:59:34 2021 -0700 |
committer | GitHub <noreply@github.com> | Tue Aug 31 16:59:34 2021 -0700 |
tree | 74a62b0a1637f1de691176fb8ab14908f156a8d5 | |
parent | 4b1a41e6adbdd78151eb3eda885c4d89262a1efa [diff] |
Fix formatting (#36)
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.