handleLifecycleEventMove method

  1. @internal
LifecycleEventStatus handleLifecycleEventMove(
  1. Component newParent
)

Implementation

@internal
LifecycleEventStatus handleLifecycleEventMove(Component newParent) {
  if (_parent != null) {
    _remove();
  }
  if (newParent.isMounted) {
    _parent = newParent;
    _mount();
  } else {
    newParent.add(this);
  }
  return LifecycleEventStatus.done;
}