commit | f63fd0bc3021354a0687dc935962c9acc003f47e | [log] [tgz] |
---|---|---|
author | Greg Spencer <gspencergoog@users.noreply.github.com> | Thu Apr 01 21:28:39 2021 -0700 |
committer | GitHub <noreply@github.com> | Thu Apr 01 21:28:39 2021 -0700 |
tree | 9871eb013d4b5ce70a009877663296619dc37aa4 | |
parent | c20e6fa315e9f8820e51c0ae721f63aff33b8e17 [diff] |
Add OS constants for use in switch statements (#30)
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.