dequeueAdd method
Implementation
@internal
void dequeueAdd(Component child, Component parent) {
for (final event in _queue) {
if (event.kind == _LifecycleEventKind.add &&
event.child == child &&
event.parent == parent) {
event.kind = _LifecycleEventKind.unknown;
return;
}
}
throw AssertionError(
'Cannot find a lifecycle event Add(child=$child, parent=$parent)',
);
}