relativeTo method

String relativeTo(
  1. FileSystemEntity other
)

Returns a path relative to the given other.

Implementation

String relativeTo(FileSystemEntity other) {
  return normalize(relative(path, from: other.path));
}