findByLabel method
Implementation
GuiComponent? findByLabel(String text, String type) {
final object = obj.findByLabel(text, type);
if (object == null) {
throw Exception(
"Component with label '$text' and type '$type' not found.",
);
}
return GuiComponent(object);
}