getFlagCodesign method

String getFlagCodesign()

Gets the codesign flag value formatted for command-line usage.

Returns:

  • '--codesign' if the flag is set to true
  • '--no-codesign' if the flag is set to false or not provided

Example:

final codesignFlag = argResults.getFlagCodesign();
// Returns '--codesign' or '--no-codesign'

Implementation

String getFlagCodesign() =>
    this?['codesign'] ?? true ? '--codesign' : '--no-codesign';