normalizePath method Null safety
Returns a URI where the path has been normalized.
A normalized path does not contain
. segments or non-leading
Only a relative path with no scheme or authority may contain
a path that starts with
/ will also drop any leading
This uses the same normalization strategy as
Does not change any part of the URI except the path.
The default implementation of
Uri always normalizes paths, so calling
this function has no effect.