commit | 5c97211f3943cb108b8d99b3605b2fe7baf05b1a | [log] [tgz] |
---|---|---|
author | Todd Volkert <tvolkert@google.com> | Wed Jan 25 12:57:32 2017 -0800 |
committer | Todd Volkert <tvolkert@google.com> | Wed Jan 25 12:57:32 2017 -0800 |
tree | 9bd28adbf6821a4359e8f212eb7c9fb079934c94 | |
parent | 9be46233bbec8950893563dfe8bf12934ffffd0a [diff] |
Add const constructors for Platform and LocalPlatform
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.