From 824b806bfc08ba99cf6d6fe64cc52a5dc92a0808 Mon Sep 17 00:00:00 2001 From: Greg Spencer Date: Tue, 17 Apr 2018 12:19:15 -0700 Subject: [PATCH] Add missing docs to public function. (#16651) Adding missing docs to the forceRebuild function in the widget inspector. --- packages/flutter/lib/src/widgets/widget_inspector.dart | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/flutter/lib/src/widgets/widget_inspector.dart b/packages/flutter/lib/src/widgets/widget_inspector.dart index 797d3ebeeb..a24186bb5e 100644 --- a/packages/flutter/lib/src/widgets/widget_inspector.dart +++ b/packages/flutter/lib/src/widgets/widget_inspector.dart @@ -290,6 +290,11 @@ class WidgetInspectorService { ); } + /// Cause the entire tree to be rebuilt. This is used by development tools + /// when the application code has changed and is being hot-reloaded, to cause + /// the widget tree to pick up any changed implementations. + /// + /// This is expensive and should not be called except during development. @protected Future forceRebuild() { final WidgetsBinding binding = WidgetsBinding.instance;