isPermanentlyDenied static method Null safety

Future<bool> isPermanentlyDenied(
  1. Permissions permission
)

returns true if permission is permanently denied, otherwise return false

Implementation

static Future<bool> isPermanentlyDenied(Permissions permission) async {
  return (await getPermissionResult(permission)) == -1;
}