frameFor method
The frame that holds key's slot: the base one, or the level it stands
at. The base one when none does, so that the caller's slotForKey says
"not in this frame" exactly as it did before there were levels.
Implementation
GlassProxyFrame? frameFor(Object key) {
final GlassProxyFrame? base = _frame;
if (_upper.isEmpty || (base != null && base.keys.contains(key))) {
return base;
}
for (final GlassProxyFrame? frame in _upper) {
if (frame != null && frame.keys.contains(key)) {
return frame;
}
}
return base;
}