normalizePath static method

String normalizePath(
  1. String path
)

Normalize path by removing redundant separators

path - The path to normalize Returns normalized path

Implementation

static String normalizePath(String path) {
  return path.replaceAll(RegExp(r'/+'), '/');
}