GuiButton method

GuiResult GuiButton(
  1. Rectangle bounds,
  2. String? text
)

Button control, returns true when clicked

Implementation

GuiResult GuiButton(
  Rectangle bounds,
  String? text,
) => run(
  () => _debugLabels.GuiButton(bounds, text),
  () => .fromValue(_flat.GuiButton(
    bounds,
    String$.ValueOrNull(text),
  )),
);