Handle Dart file paths without separator pitfalls.
Replace fragile Dart path-string operations with platform-aware joining, segment checks, extension handling, and filesystem-specific path contexts.
When to use it
Use when writing or refactoring file paths, directory names, or extensions, including replacing raw string path operations; not for network routing or unrelated strings.
It changes how the agent writes and refactors Dart file-path handling in the project.
What you provide
The prescribed segment-matching approach uses Dart 3 list pattern matching.
The path-handling code imports package:path for its path operations.
No additional actions listed.