addOptionDart2JsOptimization method

void addOptionDart2JsOptimization()

Implementation

void addOptionDart2JsOptimization() {
  addOption(
    'dart2js-optimization',
    help:
        '''Sets the optimization level used for Dart compilation to JavaScript. Valid values range from O1 to O4. [O1, O2, O3, O4 (default)]''',
    allowed: ['O1', 'O2', 'O3', 'O4'],
  );
}