getFlagDumpInfo method

String getFlagDumpInfo()

Gets the dump info flag value formatted for command-line usage.

Returns:

  • '--dump-info' if the flag is set to true
  • Empty string if the flag is set to false or not provided

Example:

final dumpInfoFlag = argResults.getFlagDumpInfo();
// Returns '--dump-info' or ''

Implementation

String getFlagDumpInfo() => this?['dump-info'] ?? false ? '--dump-info' : '';