updateState method

void updateState(
  1. UniqueKey uniqueKey
)

Rebuilds widgets tied to a specific state key, typically from InitedState, ValueState, or VoidState.

Used internally by refreshWith and refreshUpdate.

Implementation

void updateState(UniqueKey uniqueKey) {
  final notifiers = _updates[uniqueKey];
  if (notifiers != null) {
    for (var i = notifiers.length - 1; i >= 0; i--) {
      rebuild(notifiers[i].setState);
    }
  }
}