CdpProcessStarter typedef

CdpProcessStarter = Future<Process> Function(String executable, List<String> arguments, {ProcessStartMode? mode, String? workingDirectory})

Signature for Process.start test seam. Mirrors the upstream subset StartCommand needs. The mode parameter is nullable so test fakes can omit it comfortably; _defaultProcessStart bridges to Process.start's non-nullable parameter with a default.

Implementation

typedef CdpProcessStarter = Future<Process> Function(
  String executable,
  List<String> arguments, {
  String? workingDirectory,
  ProcessStartMode? mode,
});