CommandContext constructor

CommandContext({
  1. required Logger logger,
  2. PlatformService? platform,
  3. FileSystemService? fileSystem,
  4. ProcessService? process,
  5. ConfigService? config,
  6. TerminalService? terminal,
})

Implementation

CommandContext({
  required this.logger,
  PlatformService? platform,
  FileSystemService? fileSystem,
  ProcessService? process,
  ConfigService? config,
  TerminalService? terminal,
}) : platform = platform ?? const PlatformService(),
     fileSystem = fileSystem ?? const FileSystemService(),
     process = process ?? const ProcessService(),
     config = config ?? const ConfigService(),
     terminal = terminal ?? TerminalService(logger: logger);