handleLifecycleEventAdd method

  1. @internal
LifecycleEventStatus handleLifecycleEventAdd(
  1. Component parent
)

Implementation

@internal
LifecycleEventStatus handleLifecycleEventAdd(Component parent) {
  assert(!isMounted);
  if (parent.isMounted && isLoaded) {
    _parent ??= parent;
    _mount();
    return LifecycleEventStatus.done;
  } else {
    if (parent.isMounted && !isLoading) {
      _startLoading();
    }
    return LifecycleEventStatus.block;
  }
}