rebuildState static method

void rebuildState(
  1. BuildContext? context,
  2. State<StatefulWidget>? state
)

Implementation

static void rebuildState(BuildContext? context, State? state) {
  if (state == null) return;
  getElementOfState(context, state)?.markNeedsBuild();
}