notifyRegistrantPainted method

void notifyRegistrantPainted(
  1. BuildContext registrant
)

Called from GlassPinnedBarChrome's paint probe when registrant paints onstage.

IndexedStack and Offstage skip painting inactive children without rebuilding const subtrees; observing when a different registered bar begins painting schedules one post-frame re-resolve at zero steady-state cost.

Implementation

void notifyRegistrantPainted(BuildContext registrant) {
  if (_onstageRegistrants.contains(registrant)) return;
  _scheduleNotify();
}