expand static method
The entities instance makes, parents first, the top one first:
prefab files read through resolve (null for one that cannot be
read). Null when instance's own prefab cannot be read.
A change to an entity the prefab no longer has is passed over. Throws a FormatException for a prefab that holds itself, however deep.
Implementation
static List<PrefabNode>? expand(
PrefabInstance instance,
PrefabFile? Function(String path) resolve,
) => _expand(instance, resolve, <String>[]);