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

Unified Diff: sky/sdk/lib/framework/components2/checkbox.dart

Issue 1172173002: Clean up a bunch of our Dart code. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: upstream merge Created 5 years, 6 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 | « sky/sdk/lib/framework/components2/button_base.dart ('k') | sky/sdk/lib/framework/components2/drawer.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/lib/framework/components2/checkbox.dart
diff --git a/sky/sdk/lib/framework/components2/checkbox.dart b/sky/sdk/lib/framework/components2/checkbox.dart
index 1944d2e05429cec25e96ed6cf6226e16f3d89067..706dc6020c09aaaa529d390a217a650ef106707b 100644
--- a/sky/sdk/lib/framework/components2/checkbox.dart
+++ b/sky/sdk/lib/framework/components2/checkbox.dart
@@ -14,11 +14,11 @@ typedef void ValueChanged(value);
class Checkbox extends ButtonBase {
+ Checkbox({ Object key, this.onChanged, this.checked }) : super(key: key);
+
bool checked;
ValueChanged onChanged;
- Checkbox({ Object key, this.onChanged, this.checked }) : super(key: key);
-
void _handleClick(sky.Event e) {
onChanged(!checked);
}
@@ -63,4 +63,5 @@ class Checkbox extends ButtonBase {
onGestureTap: _handleClick
);
}
+
}
« no previous file with comments | « sky/sdk/lib/framework/components2/button_base.dart ('k') | sky/sdk/lib/framework/components2/drawer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698