getRelativePath function
Implementation
String getRelativePath(String absolutePath, String basePath) {
var result = absolutePath.replaceFirst(basePath, '');
if (result.startsWith('/')) {
result = result.replaceFirst('/', '');
}
return result;
}