updateStatus method

void updateStatus(
  1. dynamic status
)

Rebuilds all widgets listening to a specific runtime type status.

Used by refreshStatus, based on the type of the status object.

Implementation

void updateStatus(dynamic status) {
  final notifiers = _updates[ValueKey(status.runtimeType)];
  if (notifiers != null) {
    for (var i = notifiers.length - 1; i >= 0; i--) {
      rebuild(notifiers[i].setState);
    }
  }
}