showDialog method

void showDialog(
  1. Widget dialog
)

Shows a dialog.

The dialog parameter should be a widget that represents the dialog to be displayed.

Implementation

void showDialog(Widget dialog) {
  setState(() {
    _dialog = dialog;
  });
}