commit | 33bb07771d6d459a8fd1cafc7ad3195144bc4b51 | [log] [tgz] |
---|---|---|
author | Jonah Williams <jonahwilliams@google.com> | Wed Jul 29 16:24:42 2020 -0700 |
committer | GitHub <noreply@github.com> | Wed Jul 29 16:24:42 2020 -0700 |
tree | 61c9f4f369b3c140993898a665330be91bf1bc25 | |
parent | fd0961d8a57979c5690b7ce9b584d99146acb6bd [diff] |
[null-safety] migrate platform to null-safe dart (#24) Migrate platform to null-safety. Remove stable travis shard since that does not support null safety
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.