findByLabel method

GuiComponent? findByLabel(
  1. String text,
  2. String type
)

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);
}