platforms property

Set<CustomInfoPlatforms> platforms
final

Specify only run current command on which compile platform.

Contains:

  • Linux
  • MacOS
  • Windows

On platforms not set to run command, the generated variable value will be set to platformDefaultValue to avoid compile error since dart has no constexpr.

For example:

Default value is all platforms.

Implementation

final Set<CustomInfoPlatforms> platforms;