addPackage static method

dynamic addPackage(
  1. String package
)

Add a package to your pubspec.yaml file.

Implementation

static addPackage(String package) async {
  await runProcess("dart pub add $package");
}