initInheritedState<V extends InheritedWidget> method

InheritedStatefulWidget<InheritedWidget> initInheritedState<V extends InheritedWidget>(
  1. V inheritedWidgetBuilder(
    1. Widget child
    )
)

Initialize the InheritedWidget State object

Implementation

InheritedStatefulWidget initInheritedState<V extends InheritedWidget>(
        V Function(Widget child) inheritedWidgetBuilder) =>
    // Create the StatefulWidget to contain the InheritedWidget
    // GlobalKey to 'keep' this StatefulWidget's state during it lifetime.
    InheritedStatefulWidget<V>(
        key: GlobalKey(),
        inheritedWidgetBuilder: inheritedWidgetBuilder,
        child: _BuildBuilder(key: GlobalKey(), builder: buildIn));