pathsEqual function
check the paths are equal or not
Implementation
bool pathsEqual(
List<String> paths, {
bool normSlashs = true,
endWithSlash = true,
startWithSlash = true,
}) {
if (paths.isEmpty) {
return true;
}
var path1 = endpointNorm(
[paths[0]],
normSlashs: normSlashs,
endWithSlash: endWithSlash,
startWithSlash: startWithSlash,
);
for (var path in paths) {
var path2 = endpointNorm(
[path],
normSlashs: normSlashs,
endWithSlash: endWithSlash,
startWithSlash: startWithSlash,
);
if (path1 != path2) {
return false;
}
}
return true;
}