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 && this is StateX
      ? _SetStateXWidget(stateX: this as StateX, widgetFunc: widgetFunc)
      : widgetFunc(context);
}