addFlagDumpInfo method

void addFlagDumpInfo({
  1. bool defaultsTo = false,
})

Adds a dump info flag for JavaScript compiler information.

Passes "--dump-info" to the Javascript compiler which generates information about the generated code is a .js.info.json file.

Defaults to false.

Example:

argParser.addFlagDumpInfo(defaultsTo: true);

Implementation

void addFlagDumpInfo({bool defaultsTo = false}) {
  addFlag(
    'dump-info',
    help:
        'Passes "--dump-info" to the Javascript compiler which generates information about the generated code is a .js.info.json file.',
    defaultsTo: defaultsTo,
  );
}