showDialogHTML function

DivElement? showDialogHTML(
  1. String? html, {
  2. double? transparency,
  3. String? padding,
  4. NodeValidator? validator,
})

Shows a html dialog.

html The HTML to show. transparency The transparency of the dialog as double. padding The padding of the dialog. validator The NodeValidator for HTML generation.

Implementation

DivElement? showDialogHTML(String? html,
    {double? transparency, String? padding, NodeValidator? validator}) {
  if (html == null || html.isEmpty) return null;

  var element = SpanElement();

  setElementInnerHTML(element, html, validator: validator);

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