showDialogX static method
Implementation
static void showDialogX({
required Widget child,
bool isCancelable=true,
BuildContext ? context,
}){
_isDialogOpen=true;
showDialog(context: context??AppCntx.currentContext,
barrierDismissible: isCancelable,
builder: (context) => Dialog(
backgroundColor: Colors.transparent,
insetPadding: const EdgeInsets.symmetric(horizontal: 20),
child: child,
),).then((value) => _isDialogOpen=false);
}