show method
display the rendered dialog content in alert dialog
context
: the context of the app to display the dialog
Implementation
void show(BuildContext context) {
showDialog(
context: context,
barrierDismissible: dismissable,
barrierColor: barrierColor ?? BlurryColors.defaultBarrierColor,
builder: (context) {
return AlertDialog(
content: this,
contentPadding: const EdgeInsets.all(0),
backgroundColor: Colors.white.withOpacity(0),
);
},
);
}