Platform constructor

const Platform()

Produces the default instance of Platform.

The default platform instance cannot be mocked. Use Platform.current to access an instance that can be changed for testing.

In general, prefer using Platform.current over this constructor, which mainly exists as a target for migration from earlier versions of this package.

Implementation

const factory Platform() = _PlatformHelper;