onMount method

  1. @override
void onMount()
override

Called when the owning node enters a live scene graph.

Implementation

@override
void onMount() {
  if (_register(silent: false)) {
    // Dependents that mounted first (a sibling collider, a joint on any
    // node referencing this body) are waiting on this handle.
    retryPendingPhysicsRegistrations();
  } else {
    addPendingPhysicsRegistration(this);
  }
}