buildPlatforms property

List<TargetPlatform> get buildPlatforms

The list of target platforms provided in the config for building iOS and android config may exist without a build command, in which case they will not be returned All other platforms, since they do not have a publish config yet, will return if have a config

Implementation

List<TargetPlatform> get buildPlatforms => [
  if (ios != null && ios!.buildCommand.isNotEmpty) TargetPlatform.ios,
  if (android != null && android!.buildCommand.isNotEmpty) TargetPlatform.android,
  if (macos != null) TargetPlatform.macos,
  if (linux != null) TargetPlatform.linux,
  if (windows != null) TargetPlatform.windows,
  if (web != null) TargetPlatform.web,
];