platform property

TargetPlatform platform
final

The TargetPlatform that identifies the platform on which the package is currently executing. Defaults to defaultTargetPlatform. Note that TargetPlatform does not include web, but includes mobile and desktop. This parameter is normally used to change the target platform during testing.

Implementation

final TargetPlatform platform;