stateSet method
Called when the State's InheritedWidget is called again This 'widget function' will be called again.
Implementation
@override
// @Deprecated('Use stateBuilder() instead.')
Widget stateSet(WidgetBuilder? builder) {
builder ??=
(_) => const SizedBox.shrink(); // Display 'nothing' if not provided
return StateDependentWidget(stateMixin: this, builder: builder);
}