From 5460e94488faab073e31937e879a369c2db7498d Mon Sep 17 00:00:00 2001 From: Adam Barth Date: Mon, 2 May 2016 13:38:07 -0700 Subject: [PATCH] Add docs to Element.performRebuild (#3667) --- packages/flutter/lib/src/widgets/framework.dart | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/flutter/lib/src/widgets/framework.dart b/packages/flutter/lib/src/widgets/framework.dart index b777bb6710..c3973eb096 100644 --- a/packages/flutter/lib/src/widgets/framework.dart +++ b/packages/flutter/lib/src/widgets/framework.dart @@ -1411,7 +1411,13 @@ abstract class BuildableElement extends Element { assert(!_dirty); } - /// Called by rebuild() after the appropriate checks have been made. + /// Called by [rebuild] after [rebuild] has checked that this element indeed + /// needs to build and is still active. + /// + /// This function is called if this element is marked as needing to be built + /// (see [markNeedsBuild]). For example, if [State.setState] is called on its + /// associated [State] object or if this element depends on an + /// [InheritedElement] that has itself changed. void performRebuild(); @override