buildRunnerServeArgs property

List<String> buildRunnerServeArgs

Arguments needed to run buildRunnerServe.

Implementation

List<String> get buildRunnerServeArgs {
  final list = ['$directory:$buildRunnerPort'];
  if (lowResourcesMode) {
    list.add('--${CliOption.lowResourcesMode}');
  }
  if (config != null) {
    list.addAll(['--${CliOption.config}', config]);
  }
  if (define != null) {
    list.addAll(['--${CliOption.define}', define]);
  }
  if (hostName != 'localhost') {
    list.addAll(['--${CliOption.hostName}', hostName]);
  }
  return list;
}