toWindowsSystemPathFormat function

String toWindowsSystemPathFormat(
  1. String path
)

Replaces all forward slashes in path with backslashes.

Implementation

String toWindowsSystemPathFormat(String path) {
  return path.split(RegExp(r'[\\/]')).join('\\');
}