pathRelative function

String pathRelative(
  1. String path, {
  2. String? from,
})

Implementation

String pathRelative(String path, {String? from}) {
  path = pathExpand(path);
  if (from != null) {
    from = pathExpand(from);
  }
  return path_path.relative(path, from: from).replaceAll('\\', '/');
}