Commit f012a0fd authored by Adam Barth's avatar Adam Barth

Document that State#build(BuildContext context) is always the same as State#context (#4116)

Fixes #4114
parent e8e9d463
......@@ -461,6 +461,10 @@ abstract class State<T extends StatefulWidget> {
/// The given build context object contains information about the location in
/// the tree at which this widget is being built. For example, the context
/// provides the set of inherited widgets for this location in the tree.
///
/// The context argument is always the same as [State.context]. This argument
/// is provided redundantly here to match the [WidgetBuilder] function
/// signature used by [StatelessWidget.build] and other widgets.
Widget build(BuildContext context);
/// Called when an Inherited widget in the ancestor chain has changed. Usually
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment