build method
Implementation
Widget build(Widget body, {bool flex = false, String? title, bool? ok, bool? cancel, DialogWidth? dialogWidth}) {
if (dialogWidth != null) {
this.dialogWidth = dialogWidth;
}
if (title != null) this.title(title.text());
this.actions(ok: ok, cancel: cancel);
List<Widget> items = [if (panelTitle != null) panelTitle!, if (flex) body.flexible(), if (!flex) body, if (panelActions != null) panelActions!];
return _constrainWidth(items);
}