toPosix method

String toPosix([
  1. bool quoted = false
])

Implementation

String toPosix([bool quoted = false]) {
  if (Platform.isWindows) {
    final result = replaceAll('\\', '/');
    return quoted ? "'$result'" : result;
  }
  return this;
}