showApplyPermissionDialog static method

dynamic showApplyPermissionDialog(
  1. BuildContext context, {
  2. required String permissionType,
  3. 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,
          ),
        );
      });
}