platform library Null safety

Core interfaces & classes.

Classes

FakePlatform
Provides a mutable implementation of the Platform interface.
LocalPlatform
Platform implementation that delegates directly to dart:io.
Platform
Provides API parity with the Platform class in dart:io, but using instance properties rather than static properties. This difference enables the use of these APIs in tests, where you can provide mock implementations.