updateOnly method

void updateOnly(
  1. Key key
)

Rebuilds only widgets that are subscribed to a specific key.

This is used in refreshOnly and custom reactive keys.

Implementation

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