Shell constructor

const Shell({
  1. required String name,
  2. required String program,
  3. required List<String> arguments,
  4. FutureOr<void> onStdout(
    1. FlowContext context,
    2. List<int> chars
    )?,
  5. FutureOr<void> onStderr(
    1. FlowContext context,
    2. List<int> chars
    )?,
  6. bool runAsAdministrator = false,
  7. bool runInShell = false,
  8. String? workingDirectory,
})

Default const constructor.

The default values of runAsAdministrator and runInShell are false.

Implementation

const Shell({
  required this.name,
  required this.program,
  required this.arguments,
  this.onStdout,
  this.onStderr,
  this.runAsAdministrator = false,
  this.runInShell = false,
  this.workingDirectory,
});