ensure method

Future<bool> ensure({
  1. bool showDialog = true,
  2. BuildContext? context,
})

Checks if the permission is granted, requests if needed, and shows settings dialog if permanently denied.

Implementation

Future<bool> ensure({
  bool showDialog = true,
  BuildContext? context,
}) {
  return CkPermission(this).ensure(
    showDialog: showDialog,
    context: context,
  );
}