commit | c20e6fa315e9f8820e51c0ae721f63aff33b8e17 | [log] [tgz] |
---|---|---|
author | Jonah Williams <jonahwilliams@google.com> | Wed Feb 03 09:43:48 2021 -0800 |
committer | GitHub <noreply@github.com> | Wed Feb 03 09:43:48 2021 -0800 |
tree | f9878531d81ff61e9d2ccc9ca8383426e04de67b | |
parent | 00e563f4b8c57c40134888e048fa2270e7af23f7 [diff] |
stable release for null safety (#29)
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.