Clone this repo:
  1. 1ffad63 Remove package root (#38) by Michael Thomsen · 7 weeks ago master
  2. 46abb2a Fix formatting (#36) by Greg Spencer · 5 months ago
  3. 4b1a41e Switch to GitHub actions, update analysis options, fix analysis issues. (#35) by Greg Spencer · 5 months ago
  4. 17e660f Fix sdk version constraint to no longer be pre-release (#34) by Greg Spencer · 5 months ago
  5. a09333f Add FakePlatform.copyWith to allow overriding some values only (#33) by Greg Spencer · 5 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.