BuildArguments constructor

BuildArguments(
  1. Variables variables, {
  2. String? buildMode = 'release',
  3. String? output,
  4. String? target,
  5. required String binaryType,
  6. required String buildSourceDir,
  7. String? flavor,
  8. String? dartDefines,
  9. String? dartDefinesFile,
  10. List<String>? customArgs,
  11. String? buildName,
  12. String? buildNumber,
  13. bool pub = true,
})

Creates a new BuildArguments instance.

  • variables - Variable processor for argument substitution
  • binaryType - Type of binary to build (required)
  • buildSourceDir - Source directory for build artifacts (required)
  • buildMode - Build mode (defaults to 'release')
  • output - Custom output path (optional)
  • target - Target Dart file (optional)
  • flavor - Build flavor (optional)
  • dartDefines - Dart defines string (optional)
  • dartDefinesFile - Path to defines file (optional)
  • customArgs - Additional build arguments (optional)
  • buildName - Version name (optional)
  • buildNumber - Version code (optional)
  • pub - Whether to run pub get (defaults to true)

Implementation

BuildArguments(
  super.variables, {
  this.buildMode = 'release',
  this.output,
  this.target,
  required this.binaryType,
  required this.buildSourceDir,
  this.flavor,
  this.dartDefines,
  this.dartDefinesFile,
  this.customArgs,
  this.buildName,
  this.buildNumber,
  this.pub = true,
});