commit | f295eb7cba7ef52f51f869af649c1477effbbd07 | [log] [tgz] |
---|---|---|
author | Lasse R.H. Nielsen <lrn@google.com> | Wed Aug 21 19:25:04 2024 +0200 |
committer | Lasse R.H. Nielsen <lrn@google.com> | Wed Aug 21 19:25:04 2024 +0200 |
tree | abc9c8ab859c806cfa596acc4b7cbf16cb0f9d5d | |
parent | b9429614c42d6dc4fbeeec4e624d4f6297d71084 [diff] |
More fix. Not sure if difference.
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.