Index: runtime/observatory/lib/src/elements/service_ref.dart |
diff --git a/runtime/observatory/lib/src/elements/service_ref.dart b/runtime/observatory/lib/src/elements/service_ref.dart |
index d823b867bebbe32e3fdf84f67a8cf5f8cb04b40f..979879528f8506a6f0fbd079ff1fa9be156957d5 100644 |
--- a/runtime/observatory/lib/src/elements/service_ref.dart |
+++ b/runtime/observatory/lib/src/elements/service_ref.dart |
@@ -56,6 +56,24 @@ class ServiceRefElement extends ObservatoryElement { |
bool get nameIsEmpty { |
return (name == null) || name.isEmpty; |
} |
+ |
+ |
+ @published bool expanded = false; |
+ dynamic expander() { |
+ return expandEvent; |
+ } |
+ void expandEvent(bool expand, Function onDone) { |
+ if (expand) { |
+ ref.reload().then((result) { |
+ ref = result; |
+ notifyPropertyChange(#ref, 0, 1); |
+ expanded = true; |
+ }).whenComplete(onDone); |
+ } else { |
+ expanded = false; |
+ onDone(); |
+ } |
+ } |
} |