state method

  1. @Deprecated('Use stateSet() instead.')
Widget state(
  1. WidgetBuilder? widgetFunc
)
inherited

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);
}