Index: sdk/lib/core/string.dart |
=================================================================== |
--- sdk/lib/core/string.dart (revision 28427) |
+++ sdk/lib/core/string.dart (working copy) |
@@ -125,6 +125,13 @@ |
} |
/** |
+ * Returns the string for the given environment variable [name] or |
+ * [defaultValue] if [name] is not present. |
Lasse Reichstein Nielsen
2013/10/10 07:45:03
We haven't specified what an "environment variable
|
+ */ |
+ external const factory String.fromEnvironment(String name, |
+ {String defaultValue: ''}); |
+ |
+ /** |
* Gets the character (as a single-code-unit [String]) at the given [index]. |
* |
* The returned string represents exactly one UTF-16 code unit, which may be |