hasPermission method

bool hasPermission(
  1. String pathName
)

Implementation

bool hasPermission(String pathName) {
  if (currentDetails == null) return false;
  return currentDetails!.availableAccess.contains(pathName);
}