addPackage static method

Future<void> addPackage(
  1. String package
)

Implementation

static Future<void> addPackage(String package) async {
  LogService.info('Adding package $package …');
  await run('dart pub add $package', verbose: true);
}