relative static method

String relative(
  1. String path, {
  2. required String from,
})

Returns the relative path from a directory to a file/directory.

Implementation

static String relative(String path, {required String from}) {
  return p.relative(path, from: from);
}