Skip to main content

pushDialog method

void pushDialog (Widget dialog)

<p>This function is used to show the custom Dialog.</p>

Implementation

void pushDialog(Widget dialog) \{
showDialog(
context: navigatorKey.currentContext!,
barrierColor: Colors.transparent,
barrierDismissible: false,
builder: (BuildContext context) \{
return dialog;
\},
);
\}