isInProfileDirectory property

bool get isInProfileDirectory

Checks if the current path is in the profile directory.

Implementation

bool get isInProfileDirectory {
  return currentPath != null &&
      (currentPath!.endsWith('/profile') ||
          currentPath!.contains('/profile/') ||
          currentPath == '$basePath/profile' ||
          currentPath == basePath);
}