BuildContext constructor
BuildContext({
- required Widget widget,
- BuildContext? parent,
- Map<
Type, Widget> ? inheritedWidgets, - Map<
Type, dynamic> ? states, - String? path,
- SlotTracker? slotTracker,
- State<
StatefulWidget> ? currentBuildingState,
Implementation
BuildContext({
required this.widget,
this.parent,
Map<Type, Widget>? inheritedWidgets,
Map<Type, dynamic>? states,
String? path,
SlotTracker? slotTracker,
this.currentBuildingState,
}) : inheritedWidgets = inheritedWidgets ?? parent?.inheritedWidgets ?? {},
_states = states ?? parent?._states ?? {},
path = path ?? parent?.path ?? 'root',
slotTracker = slotTracker ?? parent?.slotTracker ?? SlotTracker();