dequeueAdd method

  1. @internal
void dequeueAdd(
  1. Component child,
  2. Component parent
)
inherited

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)',
  );
}