state method
Implementation
@Deprecated('Use stateSet() instead.')
Widget state(WidgetBuilder? widgetFunc) {
widgetFunc ??= (_) => const SizedBox.shrink();
return useInherited && this is StateX
? _SetStateXWidget(stateX: this as StateX, widgetFunc: widgetFunc)
: widgetFunc(context);
}