state method

Widget state(
  1. WidgetBuilder? widgetFunc
)

Called when the State's InheritedWidget is called again This 'widget function' will be called again.

Implementation

Widget state(WidgetBuilder? widgetFunc) {
  widgetFunc ??= (_) => const SizedBox();
  return _useInherited
      ? _SetStateWidget(stateX: this, widgetFunc: widgetFunc)
      : widgetFunc(context);
}