Clone this repo:
  1. 2f48298 update sdk contraint for 2.11 (#26) by Jonah Williams · 5 days ago master
  2. eca398f publishable null-safety release (#25) by Jonah Williams · 7 weeks ago
  3. 33bb077 [null-safety] migrate platform to null-safe dart (#24) by Jonah Williams · 9 weeks ago
  4. fd0961d Bump version (#20) by Todd Volkert · 1 year, 2 months ago
  5. fcf5403 Add operatingSystemVersion (#19) by Felix Angelov · 1 year, 2 months ago


Build Status - Coverage Status - Pub

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.