static String pathToDirImport(String path) { var pathSplit = safeSplitPath(path) ..removeWhere((element) => element == '.' || element == 'lib'); return pathSplit.join('/'); }