run static method

Future<int> run(
  1. String argument, {
  2. bool showLog = false,
})

Implementation

static Future<int> run(String argument, {bool showLog = false}) async {
  String command = '${getCommandFlutter()} $argument';
  if (showLog) printMessage(command);
  return command.start(
    showLog: false,
    progressOut: (line) =>
        printMessage(line.replaceAll(RegExp(r'[\s\n]+$'), '')),
    progressErr: (line) =>
        printerrMessage(line.replaceAll(RegExp(r'[\s\n]+$'), '')),
  );
}