ref<T extends GltfNode> static method
Implementation
static GltfRef<T>? ref<T extends GltfNode>(
GltfRoot root,
Map<String, Object?> map,
String key,
) {
final index = map[key];
if (index == null) {
return null;
}
return GltfRef<T>(
root: root,
index: index as int,
);
}