showDialogText function

HTMLDivElement? showDialogText(
  1. String? text, {
  2. double? transparency,
  3. String? padding,
})

Shows a text dialog.

text The text to show. transparency The transparency of the dialog as double. padding The padding of the dialog.

Implementation

HTMLDivElement? showDialogText(
  String? text, {
  double? transparency,
  String? padding,
}) {
  if (text == null || text.isEmpty) return null;

  var element = HTMLSpanElement();

  element.text = text;

  return showDialogElement(
    element,
    transparency: transparency,
    padding: padding,
  );
}