start static method

void start(
  1. String argument, {
  2. bool showLog = false,
  3. String? workingDirectory,
  4. Progress? progress,
})

Implementation

static void start(
  String argument, {
  bool showLog = false,
  String? workingDirectory,
  Progress? progress,
}) {
  String command = '';
  if (Platform.isWindows) {
    command = 'flutter.bat $argument';
  } else {
    command = 'flutter $argument';
  }
  if (showLog) print(command);
  command.start(
    workingDirectory: workingDirectory,
    progress: progress,
  );
}