platforms property
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:
- To only run command on Windows, set value to [CustomInfoPlatforms.windows].
- To only run command on Linux and MacOS, set value to [CustomInfoPlatforms.linux, CustomInfoPlatforms.macos].
Default value is all platforms.
Implementation
final Set<CustomInfoPlatforms> platforms;