ProcessConfig constructor

ProcessConfig({
  1. String? id,
  2. String? name,
  3. Iterable<String>? args,
  4. String? cwd,
  5. bool? oneShot,
  6. bool? log,
  7. int? stopSignal,
  8. Duration? stopTimeout,
  9. Map<String, String>? env,
  10. String? username,
})

Implementation

factory ProcessConfig({
  $core.String? id,
  $core.String? name,
  $core.Iterable<$core.String>? args,
  $core.String? cwd,
  $core.bool? oneShot,
  $core.bool? log,
  $core.int? stopSignal,
  $42.Duration? stopTimeout,
  $core.Map<$core.String, $core.String>? env,
  $core.String? username,
}) {
  final $result = create();
  if (id != null) {
    $result.id = id;
  }
  if (name != null) {
    $result.name = name;
  }
  if (args != null) {
    $result.args.addAll(args);
  }
  if (cwd != null) {
    $result.cwd = cwd;
  }
  if (oneShot != null) {
    $result.oneShot = oneShot;
  }
  if (log != null) {
    $result.log = log;
  }
  if (stopSignal != null) {
    $result.stopSignal = stopSignal;
  }
  if (stopTimeout != null) {
    $result.stopTimeout = stopTimeout;
  }
  if (env != null) {
    $result.env.addAll(env);
  }
  if (username != null) {
    $result.username = username;
  }
  return $result;
}