showModal function
Displays a modal with the specified components.
Implementation
Modal showModal({
required Component title,
Component? body,
List<Component>? actions,
String? className,
Map<String, String>? style,
bool? dismissible = true,
}) {
var modal = Modal(
title: title,
body: body,
actions: actions,
className: className,
style: style,
dismissible: dismissible,
);
document.body!.appendChild(modal.render());
return modal;
}