commit | 9be46233bbec8950893563dfe8bf12934ffffd0a | [log] [tgz] |
---|---|---|
author | Todd Volkert <tvolkert@users.noreply.github.com> | Wed Jan 25 12:24:27 2017 -0800 |
committer | GitHub <noreply@github.com> | Wed Jan 25 12:24:27 2017 -0800 |
tree | 75051b63169ff2d9f131f2a3b6b3017d33c67725 | |
parent | feeab7a85c245193f96cff32fc19c567e97c58c9 [diff] |
Add FakePlatform (#2)
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.