getOptionSplitDebugInfo method

String getOptionSplitDebugInfo()

Gets the split debug info option formatted for command-line usage.

Returns:

  • '--split-debug-info=value' if both the option is provided and obfuscate is true
  • Empty string otherwise

Example:

final splitDebugInfoFlag = argResults.getOptionSplitDebugInfo();
// Returns '--split-debug-info=./.symbols/' or ''

Implementation

String getOptionSplitDebugInfo() =>
    this?['split-debug-info'] != null && (this?['obfuscate'] ?? false)
        ? '--split-debug-info=${this!['split-debug-info']}'
        : '';