showApplyPermissionDialog static method
dynamic
showApplyPermissionDialog(
- BuildContext context, {
- required String permissionType,
- required Function onAgreed,
Implementation
static showApplyPermissionDialog(BuildContext context,
{required String permissionType, required Function onAgreed}) {
return showDialog(
barrierDismissible: true,
context: context,
builder: (BuildContext context) {
return WillPopScope(
onWillPop: _onWillPop,
child: ApplyPermissionDialog(
permissionType: permissionType,
onAgreed: onAgreed,
),
);
});
}