runPubGet static method

Future runPubGet(
  1. String packageDirectory, {
  2. StdoutSession? stdoutSession,
  3. bool forceUseFlutterTool = false,
})

runs pub get in the given packageDirectory depending or the package either dart or flutter is executed

Implementation

static Future runPubGet(
  String packageDirectory, {
  StdoutSession? stdoutSession,
  bool forceUseFlutterTool = false,
}) async {
  return DartInteraction.runDartOrFlutterCommand(
    packageDirectory,
    args: [
      'pub',
      'get',
    ],
    stdoutSession: stdoutSession,
    forceUseFlutterTool: forceUseFlutterTool,
  );
}