Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(244)

Unified Diff: sdk/lib/_internal/lib/core_patch.dart

Issue 54203002: Update documentation on .fromEnvironment. Make bool default be false. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Added examples. Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sdk/lib/_internal/lib/core_patch.dart
diff --git a/sdk/lib/_internal/lib/core_patch.dart b/sdk/lib/_internal/lib/core_patch.dart
index 8e5bec02c81cd96fb813f3328a2c64e52a228ba1..9e1c51f706c1467c15479b9bbb13f974ae99c9b2 100644
--- a/sdk/lib/_internal/lib/core_patch.dart
+++ b/sdk/lib/_internal/lib/core_patch.dart
@@ -232,7 +232,7 @@ patch class String {
}
patch class bool {
- patch factory bool.fromEnvironment(String name, {bool defaultValue}) {
+ patch factory bool.fromEnvironment(String name, {bool defaultValue: false}) {
throw new UnsupportedError(
'bool.fromEnvironement can only be used as a const constructor');
}

Powered by Google App Engine
This is Rietveld 408576698