show method
Displays the configured dialog.
Implementation
void show(BuildContext context) {
showDialog(
context: context,
barrierColor: const Color(0x80000000),
builder: (BuildContext context) {
return AlertDialog(
backgroundColor: Colors.transparent,
elevation: 0,
contentPadding: EdgeInsets.zero,
insetPadding: const EdgeInsets.symmetric(
horizontal: 24,
vertical: 24,
),
content: _bodyBuilder(context),
);
},
).then((value) => onClose?.call(value));
}