Notion of BuildContext A BuildContext is nothing else but a reference to the location of a Widget within the tree structure of all the Widgets which are built . In short, think of a BuildContext as the part of Widgets tree where the Widget is attached to this tree. A BuildContext only belongs to one widget.
Read moreWhat is BuildContext?
BuildContext is a locator that is used to track each widget in a tree and locate them and their position in the tree . The BuildContext of each widget is passed to their build method. Remember that the build method returns the widget tree a widget renders. Each BuildContext is unique to a widget.
Read more