Index: utils/pub/source.dart |
diff --git a/utils/pub/source.dart b/utils/pub/source.dart |
index bb956c95c106916c1979ae8c89814173beb543b5..8c54b73bad4487aff7a1fee0700794154599cea9 100644 |
--- a/utils/pub/source.dart |
+++ b/utils/pub/source.dart |
@@ -23,6 +23,9 @@ abstract class Source { |
*/ |
abstract String get name; |
+ /// Whether or not this source is the default source. |
+ bool get isDefault => systemCache.sources.defaultSource == this; |
+ |
/** |
* Whether this source's packages should be cached in Pub's global cache |
* directory. |