activate method

void activate(
  1. String packageName, {
  2. bool force = false,
})

Install a new Dart application.

Implementation

void activate(String packageName, {bool force = false}) {
  if (force || !isActivated(packageName)) {
    runlib.run(sdkBin('dart'),
        arguments: ['pub', 'global', 'activate', packageName]);
    _activatedPackages.add(packageName);
  }
}