commit | 2f482984fb43a643267446cd4a3fea8eff850ffb | [log] [tgz] |
---|---|---|
author | Jonah Williams <jonahwilliams@google.com> | Tue Sep 22 13:41:37 2020 -0700 |
committer | GitHub <noreply@github.com> | Tue Sep 22 13:41:37 2020 -0700 |
tree | 80fc18b8a7f936f15ac5ddbbf4578469436e2467 | |
parent | eca398f6901c9cb879839d7a5bc99bf5a212a9d2 [diff] |
update sdk contraint for 2.11 (#26) * update sdk contraint for 2.11
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.