LiveShell constructor

LiveShell({
  1. required LiveRunner runner,
  2. required LiveSession session,
  3. required LiveShellDispatch dispatch,
  4. required List<LiveShellCommand> commands,
  5. required Stream<List<int>> input,
  6. required StringSink output,
  7. LiveOptions options = const LiveOptions(),
  8. List<LiveManifestEntry> appCommands = const [],
  9. LiveTerminal terminal = const StdioLiveTerminal(),
  10. String? historyPath,
  11. Stream<ProcessSignal>? interrupts,
})

Creates a shell that runs commands with dispatch on session's apps.

Implementation

LiveShell({
  required this.runner,
  required this.session,
  required this.dispatch,
  required this.commands,
  required Stream<List<int>> input,
  required StringSink output,
  this.options = const LiveOptions(),
  this.appCommands = const [],
  this.terminal = const StdioLiveTerminal(),
  this.historyPath,
  Stream<ProcessSignal>? interrupts,
}) : _input = input,
     _output = output,
     _interrupts = interrupts;