publicPackages property

List<Package> publicPackages

Implementation

List<Package> get publicPackages {
  if (_publicPackages == null) {
    assert(allLibrariesAdded);
    // Help the user if they pass us a package that doesn't exist.
    for (var packageName in config.packageOrder) {
      if (!packages.map((p) => p.name).contains(packageName)) {
        warnOnElement(
            null, PackageWarning.packageOrderGivesMissingPackageName,
            message:
                "$packageName, packages: ${packages.map((p) => p.name).join(',')}");
      }
    }
    _publicPackages = packages.where((p) => p.isPublic).toList()..sort();
  }
  return _publicPackages;
}