INNER CODE UNIT · Dart
BuildWithFlutterCommand
Dropsource/monarch · tools/build.dart:99
abstract class BuildWithFlutterCommand extends Command {
BuildWithFlutterCommand() {
argParser.addOption('flutter-sdk',
abbr: 'f',
help:
'Path to the Flutter SDK to use. If blank, this command will run using '
'each Flutter SDK declared in local_settings.yaml. '
'And it will output to the out/monarch/bin/cache/monarch_ui directory.');
argParser.addOption('out-monarch-ui-flutter-id',
help: 'Path to the monarch_ui/{flutter-id} directory. '
'Only used when flutter-sdk is set.');
}
@override
Future<void> run() async {
if (argResults?['flutter-sdk'] == null) {
utils.createDirectoryIfNeeded(local_out_paths.out_ui);