stateSet method

Widget stateSet(
  1. WidgetBuilder? builder
)
inherited

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

Implementation

//@Deprecated('Use statBuilder() instead.')
Widget stateSet(WidgetBuilder? builder) {
  builder ??= (_) => const SizedBox.shrink();
  return useInherited && this is StateX
      ? StateDependentWidget(stateMixin: this as StateX, builder: builder)
      : builder(context);
}