build method

Widget build(
  1. Widget body, {
  2. bool flex = false,
  3. String? title,
  4. bool? ok,
  5. bool? cancel,
  6. DialogWidth? dialogWidth,
})

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);
}