toPlatformPath function

String toPlatformPath(
  1. String pth
)

Implementation

String toPlatformPath(String pth) {
  return pth.replaceAll(RegExp(r'[/\\]'), Platform.pathSeparator);
}