CliRunner constructor

CliRunner({
  1. GitHubContentDownloader? downloader,
  2. void output(
    1. String
    )?,
  3. void errorOutput(
    1. Object
    )?,
})

Creates a new CliRunner instance.

  • downloader: The GitHubContentDownloader to use for downloading content
  • output: Function to use for normal output (defaults to print)
  • errorOutput: Function to use for error output (defaults to stderr.writeln)

Implementation

CliRunner({
  GitHubContentDownloader? downloader,
  void Function(String)? output,
  void Function(Object)? errorOutput,
}) : _downloader = downloader ?? GitHubContentDownloader(),
     _output = output ?? stdout.writeln,
     _errorOutput = errorOutput ?? stderr.writeln;