pubGetOrFail method Null safety

  1. @protected
Future<ProcessResult> pubGetOrFail(
  1. {String? path,
  2. bool printStdOut = true,
  3. bool immediatePrint = true}
)

Implementation

@protected
Future<ProcessResult> pubGetOrFail(
    {String? path,
    bool printStdOut = true,
    bool immediatePrint = true}) async {
  assert(printStdOut || !immediatePrint,
      "You can't disable std output if immediatePrint enabled");
  return pubOrFail(
    'get',
    arguments: path != null ? [path] : null,
    printStdOut: printStdOut,
    immediatePrint: immediatePrint,
  );
}