PathHashGenerator class
Utility class for generating hierarchical path hashes for breadcrumb navigation
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
generateChildPath(
String parentPath, int childPosition) → String - Generates a child path hash based on parent's path and child position Examples:
-
generateRootPath(
) → String - Generates the root path hash for a new root node
-
getAncestorPaths(
String path) → List< String> - Gets all ancestor paths for breadcrumb navigation Examples:
-
getParentPath(
String childPath) → String? - Extracts the parent path from a child path Examples:
-
getPathDepth(
String path) → int - Gets the depth level of a path (number of dots + 1) Examples:
-
isValidPathHash(
String pathHash) → bool - Validates if a path hash follows the correct hierarchical format