Clone this repo:
  1. f63fd0b Add OS constants for use in switch statements (#30) by Greg Spencer · 4 months ago master
  2. c20e6fa stable release for null safety (#29) by Jonah Williams · 6 months ago
  3. 00e563f Update for beta release (#28) by Jonah Williams · 9 months ago
  4. ebad527 updaet SDK constraint for null safety (#27) by Jonah Williams · 9 months ago
  5. 2f48298 update sdk contraint for 2.11 (#26) by Jonah Williams · 10 months ago

Platform

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.