create<T> static method
Implementation
static StructureViewer<T> create<T>({DogEngine? engine}) {
engine ??= DogEngine.instance;
final structure = engine.findStructureByType(T);
if (structure == null) {
throw ArgumentError("No structure found for type $T");
}
return StructureViewer<T>(engine, structure);
}