showDialogHTML function

HTMLDivElement? showDialogHTML(
  1. String? html, {
  2. double? transparency,
  3. String? padding,
  4. @Deprecated("`NodeValidator` not implemented on package `web`") Object? validator,
  5. bool unsafe = false,
})

Shows a html dialog.

html The HTML to show. transparency The transparency of the dialog as double. padding The padding of the dialog.

Implementation

HTMLDivElement? showDialogHTML(
  String? html, {
  double? transparency,
  String? padding,
  @Deprecated("`NodeValidator` not implemented on package `web`")
  Object? validator,
  bool unsafe = false,
}) {
  if (html == null || html.isEmpty) return null;

  var element = HTMLSpanElement();

  setElementInnerHTML(element, html, unsafe: unsafe);

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