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

Unified Diff: runtime/lib/bool_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
« no previous file with comments | « no previous file | sdk/lib/_internal/lib/core_patch.dart » ('j') | sdk/lib/core/bool.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/bool_patch.dart
diff --git a/runtime/lib/bool_patch.dart b/runtime/lib/bool_patch.dart
index cd6b7408a0c4deb59d8ac23ddaab6532995bf458..64da8fe558336ad92fa60360ea945a9e512c2f55 100644
--- a/runtime/lib/bool_patch.dart
+++ b/runtime/lib/bool_patch.dart
@@ -7,7 +7,7 @@
patch class bool {
/* patch */ const factory bool.fromEnvironment(String name,
- {bool defaultValue})
+ {bool defaultValue = false})
Søren Gjesse 2013/10/31 08:14:30 I guess this is OK, you can then use defautValue:
Lasse Reichstein Nielsen 2013/10/31 11:52:19 You can, but you /should/ use the String construct
native "Bool_fromEnvironment";
int get _identityHashCode {
« no previous file with comments | « no previous file | sdk/lib/_internal/lib/core_patch.dart » ('j') | sdk/lib/core/bool.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698