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

Unified Diff: sky/sdk/lib/widgets/drawer.dart

Issue 1231103005: Rename watchPerformance to watch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 5 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/widgets/dismissable.dart ('k') | sky/sdk/lib/widgets/material.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/lib/widgets/drawer.dart
diff --git a/sky/sdk/lib/widgets/drawer.dart b/sky/sdk/lib/widgets/drawer.dart
index 13d00f1dea396958ed7d3ba6aca816dfd278ce95..150ca3f17bcf2a826eaacde3391d2347d6f3fd72 100644
--- a/sky/sdk/lib/widgets/drawer.dart
+++ b/sky/sdk/lib/widgets/drawer.dart
@@ -105,14 +105,16 @@ class Drawer extends AnimatedComponent {
this.controller,
this.children,
this.level: 0
- }) : super(key: key) {
- watchPerformance(controller.performance);
- }
+ }) : super(key: key);
List<Widget> children;
int level;
DrawerController controller;
+ void initState() {
+ watch(controller.performance);
+ }
+
void syncFields(Drawer source) {
children = source.children;
level = source.level;
« no previous file with comments | « sky/sdk/lib/widgets/dismissable.dart ('k') | sky/sdk/lib/widgets/material.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698