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;