showDialogText function

DivElement? 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

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

  var element = SpanElement();

  element.text = text;

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