getRelativePath method

String getRelativePath(
  1. String basePath
)

Returns the relative path of this file from the given basePath.

Implementation

String getRelativePath(String basePath) {
  return p.relative(file.path, from: basePath);
}