canBeOrphaned property Null safety

bool canBeOrphaned

Override to true if you want some object inheriting from Component to not have a parent. Most objects will validate that they have a parent during the onAdded callback otherwise they are considered invalid and are culled from core.


bool get canBeOrphaned => false;